[Issue 7438] Functions from std.conv should be pure
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Aug 13 19:47:26 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=7438
--- Comment #6 from Jonathan M Davis <jmdavisProg at gmx.com> 2013-08-13 19:47:19 PDT ---
Whether std.conv.to can be @safe or pure depends entirely on what you're
converting. For all of the built-in types, it should be @safe and pure, but
once user-defined types enter the mix, it depends on how the user-defined types
are defined. A lot of the underlying stuff which relates to arrays (like
appender) hasn't been able to be pure in the past (I don't know quite where
that sits now though), making it so that stuff like std.conv.to!string(10)
hasn't been able to be pure even though it should be. So, odds are that the
lack of purity or @safety in std.conv.to isn't std.conv.to's fault at all.
--
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