[PATCH] Objective-C : Do not accept an object as parameter to a method
Zack Weinberg
zack@codesourcery.com
Sat Jun 29 02:00:00 GMT 2002
On Thu, Jun 27, 2002 at 11:02:38AM +0100, Nicola Pero wrote:
>
> An object is declared as in (NSObject *) [it's really a pointer to the
> actual object] - and unless you do low-level things such as casting it to
> a pointer to an appropriate struct etc which you can always do - you must
> always pass around pointers/references to objects, rather than the objects
> themselves.
That seems to me like an unfortunate limitation of the language, to be
corrected, but if it's so and really not a problem, then yeah, the
original patch makes sense.
zw
More information about the Gcc-patches
mailing list