[Issue 3610] isNumeric("3.14w") is false.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jun 5 16:39:49 PDT 2011


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



--- Comment #1 from Andrei Alexandrescu <andrei at metalanguage.com> 2011-06-05 16:35:20 PDT ---
I find isNumeric quite a silly function. It has definitions for the following
cases:

bool isNumeric(cons char[], bool allowSep = false);
bool isNumeric(...);
bool isNumeric(Typeinfo[], argptr);

It was probably meant to help some scripting, although the approach and
behavior are rather bizarre (e.g. the second overload ignores everything but
the first argument).

I suggest we just remove them all. Thoughts?

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