Mac Apps That Use Garbage Collection Must Move to ARC

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Sat Feb 21 23:56:00 PST 2015


On 2/21/2015 11:06 PM, deadalnix wrote:
> On Sunday, 22 February 2015 at 06:37:45 UTC, Walter Bright wrote:
>> On 2/21/2015 10:07 PM, weaselcat wrote:
>>> Excuse my ignorance,(I read the DIP btw)
>>> How does 'return ref' address issues like
>>> http://forum.dlang.org/thread/pagpusgpyhlhoipldofs@forum.dlang.org#post-ewuwphzmubtmykfsywuw:40forum.dlang.org
>>>
>>> ?
>>
>> The short answer, is your ref types never expose a raw pointer. They do it all
>> with ref's.
>
> If you don't plan to use any method on objects, I guess that's fine.

Structs pass the 'this' pointer by ref.


More information about the Digitalmars-d mailing list