ref struct?
    Andrej Mitrovic 
    andrej.mitrovich at gmail.com
       
    Mon Oct 10 18:35:51 PDT 2011
    
    
  
On 10/11/11, bearophile <bearophileHUGS at lycos.com> wrote:
> Andrej Mitrovic:
>
>> I think this is what refcounted structs are for.
>
> "ref structs" are regular heap-allocated GC-managed structs, but they are
> managed by reference instead of by pointer. So refcounting is not
> significant here.
But can't you just make a wrapper struct that GC-allocates an internal
struct and uses subtyping and refcounting?
    
    
More information about the Digitalmars-d-learn
mailing list