June 23, 2017 Re: Compile-Time Only Function | ||||
---|---|---|---|---|
| ||||
Posted in reply to Moinak Bhattacharyya | 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 |
Copyright © 1999-2021 by the D Language Foundation