[Issue 555] New: Integral ireal literals can't be specified
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Nov 18 04:22:43 PST 2006
http://d.puremagic.com/issues/show_bug.cgi?id=555
Summary: Integral ireal literals can't be specified
Product: D
Version: 0.174
Platform: PC
OS/Version: Windows
Status: NEW
Severity: minor
Priority: P3
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: deewiant at gmail.com
ireal x = 4.Li; // works
ireal y = 4.0Li; // works
ireal z = 4Li; // fails
asdf.d(3): semicolon expected, not 'i'
asdf.d(3): no identifier for declarator i
Or:
creal x = 2L + 4.Li; // works
creal y = 3L + 4.0Li; // works
creal z = 4L + 4Li; // fails
Which shows the discrepancy - the real numbers work, but the imaginary fails.
Not that important, since you can just write 4i, but it seems inconsistent
since you can write both 123.456i and 123.456Li, but not 123456i and 123456Li.
--
More information about the Digitalmars-d-bugs
mailing list