[Dlang-study] [lifetime] Few root decisions to take on RC classes

Andrei Alexandrescu andrei at erdani.com
Fri Oct 30 19:43:44 PDT 2015


On 10/30/2015 09:29 PM, Timon Gehr wrote:
> The reason for baking @rc into the language is that we want to be able
> to @safely escape the 'this' reference for reference-counted classes.

That would be the short of it. More specifically, we want to still allow 
GC classes to behave the way they behave today (where unstructured 
escapes are allowed). -- Andrei


More information about the Dlang-study mailing list