DIP77 - Fix unsafe RC pass by 'ref'
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Fri Apr 10 02:28:18 PDT 2015
On 4/10/2015 2:27 AM, "Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?=
<ola.fosheim.grostad+dlang at gmail.com>" wrote:
> On Friday, 10 April 2015 at 09:15:11 UTC, Walter Bright wrote:
>> ref2 is copied.
>
> You cannot copy a resource like a memfile. It is already closed and the memory
> is gone.
Please read the DIP again. The copy happens earlier.
More information about the Digitalmars-d
mailing list