[Issue 7438] Functions from std.conv should be pure
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Apr 19 15:01:58 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7438
bearophile_hugs at eml.cc changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bearophile_hugs at eml.cc
--- Comment #3 from bearophile_hugs at eml.cc 2012-04-19 15:02:53 PDT ---
(In reply to comment #2)
> Should we close ?
I agree with Jonathan M Davis that maybe asking for them to be always pure is a
bit too much (this is debatable. Maybe it's a good thing still).
But I think we can't close this bug report before this little program, that
shows a very basic usage of to!(), compiles with no errors or warnings:
import std.conv: to;
void main() pure {
string r = to!string(to!real("2.5"));
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list