digitalmars.D.bugs - [Issue 9357] New: Floating-point literal should always be printed with a period
- d-bugmail puremagic.com (26/26) Jan 20 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9357
- d-bugmail puremagic.com (6/6) Jan 20 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9357
- d-bugmail puremagic.com (20/22) Jan 20 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9357
- d-bugmail puremagic.com (8/28) Jan 20 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9357
- d-bugmail puremagic.com (7/9) Jan 20 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9357
- d-bugmail puremagic.com (12/12) Feb 08 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9357
- d-bugmail puremagic.com (12/12) Feb 09 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9357
http://d.puremagic.com/issues/show_bug.cgi?id=9357 Summary: Floating-point literal should always be printed with a period Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: pull Severity: normal Priority: P2 Component: DMD AssignedTo: andrej.mitrovich gmail.com ReportedBy: andrej.mitrovich gmail.com 10:00:30 PST --- void main() { int x = 1.0; } Error: cannot implicitly convert expression (1) of type double to int It should be "expression (1.0)". Opened as a separate cause of: http://d.puremagic.com/issues/show_bug.cgi?id=8807 There are likely similar issues caused by this. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 20 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9357 10:15:32 PST --- https://github.com/D-Programming-Language/dmd/pull/1520 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 20 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9357 bearophile_hugs eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bearophile_hugs eml.cc Is this enhancement request only about error messages? This prints "1": import std.stdio: writeln; void main() { double x = 1.0; writeln(x); } While in Python it always prints the leading ".0":1.0 I'd like writeln() to do the same. It helps tell part FP from integral values in printouts, etc. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------x = 1.0 x
Jan 20 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9357 10:27:24 PST ---Is this enhancement request only about error messages? This prints "1": import std.stdio: writeln; void main() { double x = 1.0; writeln(x); } While in Python it always prints the leading ".0":Nice catch. Please file this as another report since it's a library issue, I'll rename the current issue so it's obvious it's a compiler issue. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------1.0 I'd like writeln() to do the same. It helps tell part FP from integral values in printouts, etc.x = 1.0 x
Jan 20 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9357Nice catch. Please file this as another report since it's a library issue, I'll rename the current issue so it's obvious it's a compiler issue.I can't find the number, but I think this ER is already in bugzilla :-) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 20 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9357 Andrej Mitrovic <andrej.mitrovich gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull AssignedTo|nobody puremagic.com |andrej.mitrovich gmail.com 15:14:32 PST --- New pull: https://github.com/D-Programming-Language/dmd/pull/1649 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 08 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9357 yebblies <yebblies gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |yebblies gmail.com Resolution| |FIXED https://github.com/D-Programming-Language/dmd/commit/8f3c1ef7f4914c6959745b66b8335d0c53a281eb -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 09 2013