Ali Çehreli:

On 12/29/2013 04:00 AM, Mike:
Do you happen to know of any clever technique to make object, and
everything that inherits from it, a referenced counted object?

There is std.typecons.RefCounted:

  http://dlang.org/phobos/std_typecons.html#.RefCounted

I think it only works on a single object, not on the whole tree.

(And I think RefCounted is not used often in D.)

Bye,
bearophile

Reply via email to