[Issue 6277] Disallow short floating point literals

2012-07-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6277 Andrei Alexandrescu and...@metalanguage.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 6277] Disallow short floating point literals

2012-07-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6277 --- Comment #20 from Jonathan M Davis jmdavisp...@gmx.com 2012-07-23 13:50:30 PDT --- RESOLVED LATER? I didn't even realize that that was an option. I take it that that means that it's something that we'd like to do with a major revision like

[Issue 6277] Disallow short floating point literals

2012-07-22 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6277 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added CC|

[Issue 6277] Disallow short floating point literals

2012-07-22 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6277 --- Comment #12 from Jonathan M Davis jmdavisp...@gmx.com 2012-07-22 14:36:54 PDT --- While I appreciate the rationale here, we need to stop breaking existing code. This is highly annoying and disruptive to existing projects, and I think

[Issue 6277] Disallow short floating point literals

2012-07-22 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6277 --- Comment #13 from Walter Bright bugzi...@digitalmars.com 2012-07-22 15:05:44 PDT --- (In reply to comment #12) To be fair, adding UFCS broke code using floating point literals, since 1.f became illegal. I agree that we do break things

[Issue 6277] Disallow short floating point literals

2012-07-22 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6277 --- Comment #14 from Jonathan M Davis jmdavisp...@gmx.com 2012-07-22 15:15:46 PDT --- I think that the irritation caused by this should would be minimal (well disallowing 1. anyway - .1 would get _far_ more complaints), and I'd _like_ to see

[Issue 6277] Disallow short floating point literals

2012-07-22 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6277 --- Comment #16 from bearophile_h...@eml.cc 2012-07-22 15:47:23 PDT --- (In reply to comment #13) After all, it's been around in C forever without making anyone's list I've seen on things I hate about C. C doesn't have UCFS. And it's on my

[Issue 6277] Disallow short floating point literals

2012-07-22 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6277 --- Comment #15 from bearophile_h...@eml.cc 2012-07-22 15:45:43 PDT --- (In reply to comment #14) If we're not going to make the change though, I think that we should close this enhancement request. There are also 8 votes on this

[Issue 6277] Disallow short floating point literals

2012-07-22 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6277 --- Comment #17 from Walter Bright bugzi...@digitalmars.com 2012-07-22 15:50:43 PDT --- I think that the irritation caused by this should would be minimal Certainly it's easy for the user to fix the code. The *problem*, though, is: I

[Issue 6277] Disallow short floating point literals

2012-07-22 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6277 --- Comment #18 from bearophile_h...@eml.cc 2012-07-22 16:04:37 PDT --- (In reply to comment #17) Certainly it's easy for the user to fix the code. The *problem*, though, is: I downloaded this D library and it won't compile! D sux!

[Issue 6277] Disallow short floating point literals

2012-07-22 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6277 Andrei Alexandrescu and...@metalanguage.com changed: What|Removed |Added CC|

[Issue 6277] Disallow short floating point literals

2012-07-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6277 --- Comment #6 from github-bugzi...@puremagic.com 2012-07-21 03:17:30 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/phobos

[Issue 6277] Disallow short floating point literals

2012-07-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6277 --- Comment #7 from Jonathan M Davis jmdavisp...@gmx.com 2012-07-21 03:26:53 PDT --- https://github.com/D-Programming-Language/dmd/pull/1061 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are

[Issue 6277] Disallow short floating point literals

2012-07-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6277 --- Comment #8 from bearophile_h...@eml.cc 2012-07-21 05:40:07 PDT --- (In reply to comment #7) https://github.com/D-Programming-Language/dmd/pull/1061 Thank you Jonathan. Pull 1061 implements half of this request: it disallow 5. and it

[Issue 6277] Disallow short floating point literals

2012-07-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6277 --- Comment #9 from Jonathan M Davis jmdavisp...@gmx.com 2012-07-21 12:02:54 PDT --- Pull 1061 implements half of this request: it disallow 5. and it doesn't disallow .5 Given the fact that when writing by hand, .5 wouldn't have a 0 on it

[Issue 6277] Disallow short floating point literals

2011-07-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6277 --- Comment #4 from bearophile_h...@eml.cc 2011-07-11 09:55:45 PDT --- Steven Schveighoffer reminds this is probably OK (this compiles with DMD 2.054): void main() { auto x = 1f; static assert(is(typeof(x) == float)); } -- Configure

[Issue 6277] Disallow short floating point literals

2011-07-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6277 --- Comment #3 from bearophile_h...@eml.cc 2011-07-10 13:17:38 PDT --- The proposal is for hex floating point literals too. Daniel Murphy suggests to disallow 1._3 too, to help UFCS (Numeric literals cannot *start* with an underscore already).