[Pharo-project] removeSelector:

Stéphane Ducasse stephane.ducasse at inria.fr
Wed Nov 24 14:24:52 CET 2010

>>> Hello guys,
>>> regarding that comment of SmalltalkImage>>#removeSelector: is 
>>> "Safely remove a selector from a class (or metaclass). If the
>>> 	class or the method doesn't exist anymore, never mind and
>>> 	answer nil.
>>> 	This method should be used instead of 'Class removeSelector:
>>> 	#method' to omit global class references."
>>> maybe Behavior>>#removeSelector: sould be deprecated ?
>> not really
>> in fact the other one is a hack. I imagine that this is more to make sure you write
>> Smalltalk removeSelector: #foo instead of MyClass removeSelector: #foo.
>> I'm not sure that this is used in fact.
>> Stef
> Ok, so maybe we should add a comment in Behavior>>#removeSelector: to precise we should now use SmalltalkImage>>#removeSelector: instead ?

no we should not use the one of SmalltalkImage.


More information about the Pharo-project mailing list