[Issue 9998] RefCounted is impure

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Apr 29 03:44:53 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9998


monarchdodra at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |monarchdodra at gmail.com


--- Comment #1 from monarchdodra at gmail.com 2013-04-29 03:44:52 PDT ---
There is indeed a few mistakes in RefCounted which I can take care of.

I did hit this issue though:
"Error: pure function 'std.typecons.RefCounted!(int).RefCounted.~this' cannot
call impure function 'core.stdc.stdlib.free'"

I can agree that "free" is not pure, as calling it twice on the same pointer
will not yield the same result. However, there is no such thing as "trusted
purity", so I'm not sure how to do that...

I'll ask on the boards.

-- 
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