Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
September 20, 2004 where is atoi()? | ||||
---|---|---|---|---|
| ||||
I can't find it, neither can dmd. |
September 21, 2004 Re: where is atoi()? | ||||
---|---|---|---|---|
| ||||
Posted in reply to dogtired | dogtired wrote:
> I can't find it, neither can dmd.
Don't. How about std.conv ? :)
|
September 21, 2004 Re: where is atoi()? | ||||
---|---|---|---|---|
| ||||
Posted in reply to h3r3tic | 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 Re: where is atoi()? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sjoerd van Leent | 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 Re: where is atoi()? | ||||
---|---|---|---|---|
| ||||
Posted in reply to h3r3tic | 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
|
Copyright © 1999-2021 by the D Language Foundation