[Issue 9998] New: RefCounted is impure
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sat Apr 27 10:05:28 PDT 2013
    
    
  
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: nobody at puremagic.com
        ReportedBy: henning at still-hidden.de
--- Comment #0 from Henning Pohl <henning at still-hidden.de> 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: -------
    
    
More information about the Digitalmars-d-bugs
mailing list