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

Walter Bright walter at digitalmars.com
Wed Oct 28 12:53:29 PDT 2015



On 10/28/2015 8:24 AM, Andrei Alexandrescu wrote:
>
> Interesting. Would it be sensible to add a restriction that no @rc object can 
> be reachable from a global? (At least in @safe code.)

That doesn't solve the problem. It would need to be @rc objects from:

1. globals
2. outer scopes
3. fields of aggregates
4. array members
5. any data structure


More information about the Dlang-study mailing list