Purity of std.conv.to!string

Nordlöw via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Sep 26 10:07:58 PDT 2015


Why is the following code not pure:

     float x = 3.14;
     import std.conv : to;
     auto y = x.to!string;


???

Is there a reason for it not being pure? If not, this is a 
serious problem as this is such a fundamental function.


More information about the Digitalmars-d-learn mailing list