[Issue 8729] parse!bool does not work correctly

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 27 18:28:35 PDT 2012


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



--- Comment #5 from Kenji Hara <k.hara.pg at gmail.com> 2012-09-27 18:29:09 PDT ---
(In reply to comment #3)
> FYI, parse!int also has the same problem. Only floating point types seem to
> behave correctly:

NO, this is just a bug in `T parse!T(input) if (isFloatingPoint!T)`.
The parse function family should not skip leading white spaces implicitly.

I think it is simple, no special cases, and flexible design.

See also my github comment to the pull#817:
https://github.com/D-Programming-Language/phobos/pull/817#issuecomment-8960280

-- 
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