[Issue 11759] New: Poor error message trying to use lowercase L in literal suffix.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 17 13:23:16 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11759

           Summary: Poor error message trying to use lowercase L in
                    literal suffix.
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: peter.alexander.au at gmail.com


--- Comment #0 from Peter Alexander <peter.alexander.au at gmail.com> 2013-12-17 13:23:12 PST ---
ulong x = 123ul;

ul.d(1): Error: semicolon expected, not 'l'
ul.d(1): Error: no identifier for declarator l


D, unlike C/C++, requires uppercase L for the suffix.

I think this will be a common enough mistake, and easy/unambiguous to detect,
so I believe it deserves a better error message. Something along the lines of
"Error: uppercase L required for long integer suffix".

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list