Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
November 27, 2014 [Issue 13785] Integer literals are not getting widened | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13785 Dicebot <public@dicebot.lv> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |industry -- |
November 27, 2014 [Issue 13785] Integer literals are not getting widened | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13785 bearophile_hugs@eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bearophile_hugs@eml.cc --- Comment #1 from bearophile_hugs@eml.cc --- (In reply to Dicebot from comment #0) > ``` > const long A = 24L*60*60*1000*1000*10L; > const long B = 24*60*60*1000*1000*10L; > static assert(A == B); > ``` > > applicable to both D1 and D2 This bug report is already in Bugzilla. And Walter has even written a patch to fix it, but it's currently on hold because of a comment by Don. -- |
November 27, 2014 [Issue 13785] Integer literals are not getting widened | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13785 --- Comment #2 from Dicebot <public@dicebot.lv> --- Can you please link a duplicate so that I can close this one properly? -- |
November 27, 2014 [Issue 13785] Integer literals are not getting widened | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13785 bearophile_hugs@eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |DUPLICATE --- Comment #3 from bearophile_hugs@eml.cc --- Pull: https://github.com/D-Programming-Language/dmd/pull/1803 *** This issue has been marked as a duplicate of issue 4835 *** -- |
December 03, 2014 [Issue 13785] Integer literals are not getting widened | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13785 --- Comment #4 from Dicebot <public@dicebot.lv> --- Actually I am not sure if this is exactly the same thing. I don't want a warning for this snippet - I want it to actually work and assertion to pass. -- |
December 31, 2014 [Issue 13785] Integer literals are not getting widened | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13785 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |yebblies@gmail.com --- Comment #5 from yebblies <yebblies@gmail.com> --- (In reply to Dicebot from comment #4) > Actually I am not sure if this is exactly the same thing. I don't want a warning for this snippet - I want it to actually work and assertion to pass. Like... like floating point does? I don't think that would be a good idea. Having different rules for run-time and compile-time is pretty nasty. -- |
June 09, 2015 [Issue 13785] Integer literals are not getting widened | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13785 Andrei Alexandrescu <andrei@erdani.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|D1 & D2 |D2 -- |
Copyright © 1999-2021 by the D Language Foundation