On Wednesday, 8 August 2018 at 17:40:11 UTC, ketmar wrote:
vit wrote:

Hello, is in phobos some function which convert float/double to string and is pure @nogc and nothrow?

i don't think that you can make it `pure`, but you certainly can make it `nothrow`, `@nogc` and ctfe-able. it's dangerous to go alone! take this[0].


[0] http://repo.or.cz/iv.d.git/blob_plain/HEAD:/ctfefloat.d

thanks, that code can be modified to pure nothrow @nogc @safe.
Is that lib ok? Is little complicated...

Reply via email to