import std.string; void main() { string five = "5"; assert(isNumeric(five[0])); }
2.059 PS E:\DigitalMars\dmd2\samples> rdmd bug E:\DigitalMars\dmd2\windows\bin\..\..\src\phobos\std\traits.d(3233): Error: template std.traits.isNumeric(T) is not a function template bug.d(8): Error: function std.string.isNumeric is deprecated
Still reproducible with -d. I guess this bug should be closed when the deprecated variants are removed.
(In reply to comment #2) > Still reproducible with -d. > > I guess this bug should be closed when the deprecated variants are removed. Looks like that is the case now. The only isNumeric in std.string is a version that takes a string, not a char.