RCArray is unsafe

weaselcat via Digitalmars-d digitalmars-d at puremagic.com
Mon Mar 2 18:04:14 PST 2015


On Tuesday, 3 March 2015 at 01:56:09 UTC, Walter Bright wrote:
> On 3/2/2015 4:40 PM, deadalnix wrote:
>> After moving resources, the previous owner can no longer be 
>> used.
>
> How does that work with the example presented by Marc?

He couldn't pass s and a member of s because s is borrowed as 
mutable.
He would have to pass both as immutable.


More information about the Digitalmars-d mailing list