Bug 3195 – `std.conv` pureness

Status
RESOLVED
Resolution
LATER
Severity
enhancement
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2009-07-20T14:39:00Z
Last change time
2015-06-09T05:13:48Z
Assigned to
andrei
Creator
julien

Comments

Comment #0 by julien — 2009-07-20T14:39:05Z
Hello, shouldn't most `std.conv` methods be declared pure ? Cordially, Julian.
Comment #1 by andrei — 2009-08-28T08:34:52Z
They should, but many are not automatically checkable. For example, the array-to-array conversion writes to a local temporary and then returns it. Technically that is pure, but the compiler cannot prove that as of this time. I will close this for now.