discuss-gnustep
[Top][All Lists]
Advanced

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

Re: macros


From: Richard Frith-Macdonald
Subject: Re: macros
Date: Fri, 23 Feb 2001 05:37:26 +0000

On Friday, February 23, 2001, at 12:33 AM, ian.mondragon@bankofamerica.com 
wrote:

> all - 
>  
> a message on the dev list reminded me of this long standing question of 
> mine: 
>  
> why do so many people use the RELEASE(foo) and AUTORELEASE(foo) macros 
> instead of just typing out [foo release] or [foo autorelease] ?  they do the 
> same thing, but i just fail to see the logic in using the macro. 

Using RETAIN(), RELEASE(), AUTORELEASE() is recommended for efficiency ... if 
you
are using garbage collection, these macros do nothing, and you avoid the 
overhead
of the method lookups and calls.



reply via email to

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