GC for noobs

Dicebot public at dicebot.lv
Thu Feb 27 09:31:56 PST 2014


On Thursday, 27 February 2014 at 16:10:34 UTC, Adam D. Ruppe 
wrote:
> struct RefCountingStruct {
>     private struct Impl {
>       // implementation here
>
>       int refcount;
>     }
>     Impl* payload;
>     alias payload this;


Isn't it exactly what Phobos RefCounted does?


More information about the Digitalmars-d-learn mailing list