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



--- Comment #1 from Kenji Hara <k.hara...@gmail.com> 2012-04-13 23:25:21 PDT ---
std.conv.parse function receives the processed string with ref, and returns the
remains through it.

string input = "123abc";
int num = parse!int(input);
assert(num == 123);
assert(input == "abc");

So this is a Phobos issue, and expected behavior.
"123".parse!int() never works with current Phobos.

You can use std.conv.to!int("123") instead. It calls std.conv.parse and checks
there is no remains.

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

Reply via email to