Bug 6860 – isNumeric(immutable(char)) fails

Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2011-10-28T03:06:00Z
Last change time
2014-02-12T13:16:51Z
Assigned to
nobody
Creator
dlang-bugzilla

Comments

Comment #0 by dlang-bugzilla — 2011-10-28T03:06:45Z
import std.string; void main() { string five = "5"; assert(isNumeric(five[0])); }
Comment #1 by lovelydear — 2012-05-01T15:46:16Z
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
Comment #2 by dlang-bugzilla — 2012-05-01T15:49:41Z
Still reproducible with -d. I guess this bug should be closed when the deprecated variants are removed.
Comment #3 by peter.alexander.au — 2014-02-12T13:16:51Z
(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.