Escaping the Tyranny of the GC: std.rcstring, first blood

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Mon Sep 15 11:44:05 PDT 2014


On 9/15/14, 11:30 AM, Vladimir Panteleev wrote:
> On Monday, 15 September 2014 at 03:52:34 UTC, Andrei Alexandrescu wrote:
>> We're thinking of a number of schemes for reference counted objects,
>> and we think a bottom-up approach to design would work well here: try
>> a simple design and assess its limitations. In this case, it would be
>> great if you tried to use RefCounted with your class objects and
>> figure out what its limitations are.
>
> RefCounted currently does not work at all with class objects. This is
> explicitly indicated in RefCounted's template constraint.
>
> Are you saying we should try to make RefCounted work with classes or
> something else?

Yes, we should define RefCounted for classes as well. (Sorry, I was 
confused.) Extending to class types should be immediate at least in the 
first approximation. Then we can stand back and take a look at the 
advantages and liabilities.

Could someone please initiate that work?


Thanks,

Andrei



More information about the Digitalmars-d mailing list