[Dlang-study] [lifetime] Initial thoughts on lifetime management
Walter Bright
walter at digitalmars.com
Wed Oct 28 15:56:17 PDT 2015
On 10/28/2015 3:31 PM, Andrei Alexandrescu wrote:
> On 10/28/2015 03:53 PM, Walter Bright wrote:
>> 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
>
> My assumption is that the compiler gets to "see" during modular analysis 2-5,
> but not 1. -- Andrei
The objects may be buried in a data structure or be behind opaque function
declarations.
More information about the Dlang-study
mailing list