D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3195 - `std.conv` pureness
Summary: `std.conv` pureness
Status: RESOLVED LATER
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P2 enhancement
Assignee: Andrei Alexandrescu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-20 14:39 UTC by Julien Leclercq
Modified: 2015-06-09 05:13 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Julien Leclercq 2009-07-20 14:39:05 UTC
Hello,

     shouldn't most `std.conv` methods be declared pure ?

Cordially,
Julian.
Comment 1 Andrei Alexandrescu 2009-08-28 08:34:52 UTC
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.