Re: Q's about Obj-C
Re: Q's about Obj-C
- Subject: Re: Q's about Obj-C
- From: email@hidden
- Date: Mon, 15 Oct 2001 19:12:23 +0200
On Monday, October 15, 2001, at 06:52 PM, Joe Chan wrote:
id o;
[o foo:1]; // issues a warning, and compiles randomly (A) or (B)
I thought that because the runtime selects the method, it won't really
be randam, will it? It will either be calling A's or B's or forwarded
(if it's setup to do so), right?
Yes, but the compiler may have put your argument in the wrong register,
in the wrong place on the stack, or put it in the right place but in the
wrong format, etc.
Regards,
John Hornkvist
--
ToastedMarshmallow, the perfect Cocoa companion
http://www.toastedmarshmallow.com