[Pharo-dev] Fwd: use of pointsTo: for includesSelector:

Marcus Denker marcus.denker at inria.fr
Sat Oct 26 03:16:01 EDT 2013

>MethodDictionary>>includesKey: aSymbol
>"This override assumes that pointsTo is a fast primitive"
>aSymbol ifNil: [^ false].
>^ self pointsTo: aSymbol

yes, that looks very strange. especially as the overridden method should execute 
very fast, too:

includesKey: key 
	"Answer whether the receiver has a key equal to the argument, key."
	self at: key ifAbsent: [^false].

I suggest to just remove the override.


More information about the Pharo-dev mailing list