gnustep-dev
[Top][All Lists]
Advanced

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

Re: Forwarding and the GNU runtime one more time (was ANN: GNUstep 2.6.0


From: Nat!
Subject: Re: Forwarding and the GNU runtime one more time (was ANN: GNUstep 2.6.0 for openSUSE 11.4)
Date: Wed, 22 Jun 2011 10:37:45 +0200

Am 22.06.2011 um 02:31 schrieb Nicola Pero:

>> When I link gnustep-base in, then objc_msg_lookup throws an 
>> NSInvalidArgumentException,
>> because of the unrecognized selector. So objc_msg_lookup is not something I 
>> can use.
> 
> What are you trying to achieve ?  If you just want to check if a class 
> responds to a
> selector, why don't you simply use class_respondsToSelector() ?
> 

Hi Nicola 

it has been a while since my last FOSDEM :)

Well what I am trying to achieve, is just what I wrote (why doesn't anyone seem 
to believe me :)). I want to lookup an implementation as fast as possible and 
note if it is forwarding or not at the same time. If I have to do it in two 
steps, it's just going to be a bit slower. But I'll probably have to do that.

It's an optimization thingy, as you might have guessed.

Ciao
   Nat!
------------------------------------------------------------
It's great when you have a tool to make programming 
easier, but you still must understand what it does 
or you're just replacing one set of problems with 
another set of more subtle problems. -- Raymond Chen




reply via email to

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