DIP74: Reference Counted Class Objects

Rikki Cattermole via Digitalmars-d digitalmars-d at puremagic.com
Thu Feb 26 17:28:02 PST 2015


On 27/02/2015 10:50 a.m., Andrei Alexandrescu wrote:
> http://wiki.dlang.org/DIP74 got to reviewable form. Please destroy and
> discuss.
>
> Thanks,
>
> Andrei

Either I missed something or:

If I go new a type like:
Widget widget = new Widget();

This would still use the GC to allocate the memory + emplace it. Even if 
it contains the two special RC functions.

Also what about properties?
What if one of them may or may not be RC'd. Should there be a 
conditional call to the GC to add it to be scanned on assignment?

Anyway, I think it is mostly there.


More information about the Digitalmars-d mailing list