[Issue 4673] Bug in std.string (isNumeric)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Aug 18 03:51:40 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4673
--- Comment #2 from Petit Vincent <petitv.isat at gmail.com> 2010-08-18 12:51:37 CEST ---
(In reply to comment #1)
> This reduced case shows that parse() doesn't accept "F" or "L", so I don't see
> the problem yet:
>
>
> import std.conv;
> void main() {
> int n1 = parse!uint("F");
> int n2 = parse!uint("L");
> }
Some changes in your reduced case :
import std.conv;
import std.string;
void main() {
if(isNumeric("F")) // isNumeric("F") return True : since when "F" is a
numeric ?
{
int n1 = parse!uint("F");
}
if(isNumeric("L")) // same for "L"
{
int n2 = parse!uint("L");
}
if(isNumeric("U")) // same here ...
{
uint n3 = parse!uint("U");
}
}
--
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