On Thu, Jul 7, 2011 at 21:55, David Chisnall <[email protected]> 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

_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to