D - itoa and ftoa
- "Pavel Minayev" <evilone omen.ru> Jan 02 2002
- "Walter" <walter digitalmars.com> Jan 02 2002
- "Pavel Minayev" <evilone omen.ru> Jan 02 2002
- "Walter" <walter digitalmars.com> Jan 02 2002
I've seen atoi() and atof() implemented in string.d, why not itoa() and ftoa() - they are very useful as well. Yes, sprintf() can be used for this purpose - but why not provide a conveniet wrapper around it?
Jan 02 2002
"Pavel Minayev" <evilone omen.ru> wrote in message news:a108ib$2hga$1 digitaldaemon.com...I've seen atoi() and atof() implemented in string.d, why not itoa() and ftoa() - they are very useful as well. Yes, sprintf() can be used for this purpose - but why not provide a conveniet wrapper around it?
OutBuffer will work as a wrapper around it, though I intend to make a collection of toString(type) functions.
Jan 02 2002
"Walter" <walter digitalmars.com> wrote in message news:a109lv$2i67$1 digitaldaemon.com...OutBuffer will work as a wrapper around it, though I intend to make a collection of toString(type) functions.
That'd be great, since creating an OutBuffer each time it's needed to convert number to string is $#%&. BTW do you mind if I borrow the printf() and vprintf() code from OutBuffer to use in Stream?
Jan 02 2002
"Pavel Minayev" <evilone omen.ru> wrote in message news:a10a02$2ifr$1 digitaldaemon.com...BTW do you mind if I borrow the printf() and vprintf() code from OutBuffer to use in Stream?
Please, go right ahead!
Jan 02 2002








"Walter" <walter digitalmars.com>