Hi forum, is there any intended difference between the integer literal numerical constants with a type suffix (like 5'i16) and numerical constants with a suffix that doesn't contain an apostrophe (aka, single quote) (like 5i16)?
Example literals without an apostrophe (ie, the 5i16 version) are given in the section Pre-defined integer types in the manual, immediately after (in the same section) the manual said "Literals of these types have the suffix 'iXX."
I just tested with and without the apostrophe (5'i16 and 5i16). Both did compile and gave Int16Lit 5.
(I haven't found any forum results containing any of the phrases "apostrophe", "single quote", "type suffix" or "numerical constant", so it seems that no-one has asked about this before.)
Thanks for any insights.
For notational convenience the apostrophe of a type suffix is optional if it is not ambiguous (only hexadecimal floating point literals with a type suffix can be ambiguous).
Ah, thanks @OderWat.
When I read that sentence in the manual, I somehow missed the important phrase "the apostrophe of", so I misread the sentence as "For notational convenience a type suffix is optional if it is not ambiguous". My mistake.