gnustep-dev
[Top][All Lists]
Advanced

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

Re: @property coding style


From: Richard Frith-Macdonald
Subject: Re: @property coding style
Date: Sun, 29 Jan 2012 07:51:33 +0000

On 28 Jan 2012, at 14:57, Stefan Bidi wrote:
> 
> Am I required to use macros such as AUTORELEASE() or can I directly call the 
> -autorelease method?

I don't recommend the use of RETAIN/RELEASE/AUTORELEASE any more ... they were 
primarily for optimisation when you might be using garbage collection (back 
when machines were slower).

But I do still recommend ASSIGN, ASSIGNCOPY, and to a lesser extent, DESTROY. 
As these make it easier to reliably/safely manage reference counting.


reply via email to

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