[Issue 6277] New: Disallow short floating point literals
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jul 9 05:10:00 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6277
Summary: Disallow short floating point literals
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: accepts-invalid
Severity: enhancement
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2011-07-09 05:04:51 PDT ---
This comes from bug 3837 and bug 2656
I suggest to turn floating point literals like the following into syntax
errors, because the saving of one digit is not worth the troubles they cause:
.5
3.
And require something like:
0.5
3.0
See also the thread:
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.learn&article_id=28030
Daniel Murphy suggests to allow 1.f and 1.L but this a special case.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list