RCArray is unsafe

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

On Tuesday, 3 March 2015 at 02:04:15 UTC, weaselcat wrote:
> 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.

Er, I was speaking in terms of Rust of course(it has no 
distinction between const and immutable like D afaik)

More information about the Digitalmars-d mailing list