[Issue 15509] New: IAllocator must be exposed via a reference counted struct
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Sun Jan  3 14:43:51 PST 2016
    
    
  
https://issues.dlang.org/show_bug.cgi?id=15509
          Issue ID: 15509
           Summary: IAllocator must be exposed via a reference counted
                    struct
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: andrei at erdani.com
Currently any entity may stash away an IAllocator reference without any
accounting. This makes it impossible to e.g. detect whether a stack-allocated
region goes out of scope with outstanding references to it.
We need to wrap the IAllocator interface in a reference counted struct that
offers the same primitives.
--
    
    
More information about the Digitalmars-d-bugs
mailing list