std.conv.to purity
Jack Applegame via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Feb 14 03:29:28 PST 2015
why std.conv.to is not pure?
string foo(real v) pure { return v.to!string; }
// Error: pure function 'foo' cannot call impure function
'std.conv.to!string.to!(real).to'
More information about the Digitalmars-d-learn
mailing list