[Performance] Why D's std.string.atoi is 4x slower than std.c.stdlib.atoi?
Andrey Khropov
andrey.khropov at gmail.com
Sat Nov 11 14:36:40 PST 2006
Chris Miller wrote:
> I think std.string.atoi should be deprecated and removed. It's a stupid name
> and is already supported by std.conv.
Absolutely agree.
When I looked at std.string docs I found it and I saw no references that toInt
exists.
And besides that it doesn't handle errors very well: just simply returns 0.
--
AKhropov
More information about the Digitalmars-d
mailing list