http://d.puremagic.com/issues/show_bug.cgi?id=9998
Summary: RefCounted is impure
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Henning Pohl <[email protected]> 2013-04-27 10:05:27
PDT ---
Using RefCounted in a pure function is impossible:
import std.typecons;
void main() pure {
RefCounted!int i;
}
-----
main.d(4): Error: pure function 'D main' cannot call impure function
'std.typecons.RefCounted!(int).RefCounted.~this'
-----
Nothing in RefCounted is marked as pure in general.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------