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 --- Comment #0 from bearophile_hugs eml.cc 2011-02-16 16:21:58 PST --- 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 --- Comment #1 from Don <clugdbug yahoo.com.au> 2011-02-16 22:38:29 PST --- 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=5602 --- Comment #2 from bearophile_hugs eml.cc 2011-02-17 01:58:36 PST --- (In reply to comment #1)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!). -- 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 |enhancement --- Comment #3 from Don <clugdbug yahoo.com.au> 2011-02-17 04:29:48 PST --- (In reply to comment #2)(In reply to comment #1)Of 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 --- Comment #4 from Kenji Hara <k.hara.pg gmail.com> 2011-09-02 09:39:31 PDT --- 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 --- Comment #5 from bearophile_hugs eml.cc 2011-09-08 13:43:51 PDT --- 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