Two suggestions for safe refcounting

Volodymyr via Digitalmars-d digitalmars-d at
Tue Mar 10 02:43:56 PDT 2015

On Friday, 6 March 2015 at 22:41:16 UTC, Zach the Mystic wrote:

> You've packed a lot of ideas into one post. Your solution might 
> work, but it's hard for me to tell.

Yeah... How about this one:
In C++ type of "this" is T*. If we could pass shared_ptr<T> as
"this" (instead of raw ptr) system will be much safer. Same
solution may be applied for D's "this" with RefCounter!T

More information about the Digitalmars-d mailing list