discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automatic Reference Counting


From: Ondřej Hošek
Subject: Re: Automatic Reference Counting
Date: Thu, 7 Jul 2011 22:46:01 +0200

On Thu, Jul 7, 2011 at 21:55, David Chisnall <address@hidden> wrote:
>
> On 7 Jul 2011, at 19:23, Ivan Vučica wrote:
>> What happens when -retain, -release and -autorelease are overridden?
>
> This is not allowed in ARC compilation units.  My ARC implementation will 
> call them if the class declaring them does not explicitly opt in to ARC (see 
> README for how to do this).  Not sure about Apple's.

The specification at
http://clang.llvm.org/docs/AutomaticReferenceCounting.html says that
calls to objc_{retain,release,autorelease}(x) are equivalent to their
respective message sends to x. I can confirm that this works for
-release.

Cheers,
~~ Ondra



reply via email to

[Prev in Thread] Current Thread [Next in Thread]