[Issue 4165] std.conv.to!int doesn't ignore whitespace

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Aug 15 08:10:56 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4165


David Simcha <dsimcha at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |dsimcha at yahoo.com
         Resolution|                            |WONTFIX


--- Comment #3 from David Simcha <dsimcha at yahoo.com> 2010-08-15 08:10:52 PDT ---
I'm marking this as wontfix because it's by design (it's mentioned in the docs
of std.conv), and there's a trivial workaround:

int x = to!int(" 0123\n".strip());

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list