This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Objective-C : Do not accept an object as parameter to a method


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]