[Dlang-study] [lifetime] Initial thoughts on lifetime management

Andrei Alexandrescu andrei at erdani.com
Wed Oct 28 16:26:54 PDT 2015


On 10/28/2015 07:22 PM, Timon Gehr wrote:
> The question that remains is how the escape analysis should work. (This
> is roughly the reason why Rust introduces lifetime annotations: it makes
> modular a simple form of conservative escape analysis.)

If it becomes clear we need to add an annotation, we will. But with RC 
we have an easier task than Rust because we start from the conservative 
side (add an incref for each reference used, named or not) and then we 
work our way backward. -- Andrei


More information about the Dlang-study mailing list