Compile-Time Only Function

Mike via Digitalmars-d digitalmars-d at puremagic.com
Fri Jun 23 05:38:49 PDT 2017


On Friday, 23 June 2017 at 12:29:09 UTC, Moinak Bhattacharyya 
wrote:

> Do i really need to create my own itoa function?

Yes, I believe you do.  I don't think the compiler has any 
built-in "to_string" evaluation.  Even the druntime authors had 
to do this 
(https://github.com/dlang/druntime/blob/1b374914ec4e28afb87186fe51ab429df52d3322/src/core/internal/string.d) so they wouldn't have a dependency on Phobos.

Mike


More information about the Digitalmars-d mailing list