DIP77 - Fix unsafe RC pass by 'ref'

via Digitalmars-d digitalmars-d at puremagic.com
Thu Apr 9 22:56:38 PDT 2015


On Thursday, 9 April 2015 at 21:47:47 UTC, Walter Bright wrote:
> On 4/9/2015 12:58 PM, "Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?=
>> indirections...? Is the compiler going to do a recursive scan 
>> and create
>> temporaries of all RC-pointers that are reachable?
>>
>> (e.g. RCArrays of RCArrays)
>
>
> It examines the types of all mutable values available to the 
> function.

So if I pass in a graph, linked list or a tree, then it will scan 
the entire structure at runtime and build a large set of 
temporaries before calling the function?



More information about the Digitalmars-d mailing list