[Pharo-project] removeSelector:
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 ? Ben
No, it is an ill-named method. The argument is not a selector, but an array. First argument is a class and the second. Noury On 23 nov. 2010, at 12:48, Benjamin wrote:
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 ?
Ben
participants (2)
-
Benjamin -
Noury Bouraqadi