Thread overview
where is atoi()?
Sep 20, 2004
dogtired
Sep 21, 2004
h3r3tic
Sep 21, 2004
Sjoerd van Leent
Sep 21, 2004
h3r3tic
Sep 21, 2004
Sjoerd van Leent
September 20, 2004
I can't find it, neither can dmd.


September 21, 2004
dogtired wrote:
> I can't find it, neither can dmd.

Don't. How about std.conv ? :)
September 21, 2004
h3r3tic wrote:
> dogtired wrote:
> 
>> I can't find it, neither can dmd.
> 
> 
> Don't. How about std.conv ? :)

std.string, there it is
September 21, 2004
Sjoerd van Leent wrote:
> h3r3tic wrote:
> 
>> dogtired wrote:
>>
>>> I can't find it, neither can dmd.
>>
>>
>>
>> Don't. How about std.conv ? :)
> 
> 
> std.string, there it is

std.conv is better :>
September 21, 2004
h3r3tic wrote:
> Sjoerd van Leent wrote:
> 
>> h3r3tic wrote:
>>
>>> dogtired wrote:
>>>
>>>> I can't find it, neither can dmd.
>>>
>>>
>>>
>>>
>>> Don't. How about std.conv ? :)
>>
>>
>>
>> std.string, there it is
> 
> 
> std.conv is better :>

It is a string function, but I still think the name is odd. It is a C name out of the prehistory. I think that /int toInt(char[])/ and /char[] toString(int)/ would be more appropriate.

I think it should be in the std.string module since it has to do with strings. Although you can argue that it also has to do with other variables. :p