dmd 2.055 Code -------- import std.conv; void main() { const(char[]) number = "12345"; to!int(number); } -------- build & run -------- dmd test.d ./test dmd -O test.d ./test std.conv.ConvException@C:\dmd2\windows\bin\..\..\src\phobos\std\conv.d(1640): Can't convert value `12345' of type const(char)[] to type int --------
I can't reproduce this with 2.058. Anyone?
It seems to work now.