digitalmars.D.bugs - [Issue 5602] New: BigInts ignore leading spaces as in "%5d"
- d-bugmail puremagic.com (25/25) Feb 16 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5602
- d-bugmail puremagic.com (11/11) Feb 16 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5602
- d-bugmail puremagic.com (8/9) Feb 17 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5602
- d-bugmail puremagic.com (11/16) Feb 17 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5602
- d-bugmail puremagic.com (10/10) Sep 02 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5602
- d-bugmail puremagic.com (11/11) Sep 08 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5602
http://d.puremagic.com/issues/show_bug.cgi?id=5602 Summary: BigInts ignore leading spaces as in "%5d" Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Keywords: wrong-code Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: bearophile_hugs eml.cc import std.stdio, std.bigint; void main() { writefln("%10d", BigInt(10)); writefln("%10d", 10); } It prints: 10 10 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 16 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5602 Don <clugdbug yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |clugdbug yahoo.com.au Yes, that's a limitation of std.format. It only provides the character ('x', 'd', 's', etc). The same thing applies to std.complex. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 16 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5602Yes, that's a limitation of std.format.If that's a limitation meant to stay, then writef is better to give a format error (possibly at compile-time!). -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 17 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5602 Don <clugdbug yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |enhancementOf course it's not meant to stay. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------Yes, that's a limitation of std.format.If that's a limitation meant to stay, then writef is better to give a format error (possibly at compile-time!).
Feb 17 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5602 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch https://github.com/D-Programming-Language/phobos/pull/230 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 02 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5602 bearophile_hugs eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Fixed in DMD 2.055 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 08 2011