From: Richard Frith-Macdonald <richard@brainstorm.co.uk>
Date: Thu May 09, 2002 04:04:12 PM Europe/London
To: "Mondragon, Ian" <ian.mondragon@bankofamerica.com>
Cc: discuss-gnustep@gnu.org@alice.turbocat.de
Subject: Re: Selectors and categories in GNUstep (porting from Cocoa)
On Thursday, May 9, 2002, at 03:50 PM, Mondragon, Ian wrote:
is this true? what exactly would need to change in order to be able to
compare them with == ?
Hack the compiler and rewrite the runtime :-)
Actually, I don't know hw much rewriting would be involved, but I think
there would
be problems as selector management is quite intimately tied to sparse
array lookup
code for the very quick method lookup that the gnu runtime provides.
would it even be possible/worth the effort?
Probably not.
granted
this is not a difference that is going to rear it's ugly head daily,
but
this seems like one situation that could/will cause problems in porting
apps...aside from it being a pain in the neck.
Yes ... probably the simplest useful change that could be made is if
the compiler
could warn about selector equality checks when building for the gnu
runtime.