[Pharo-project] Comment in Behavior >> allMethods is wrong ?
It says: Behavior >> allMethods "Return the collection of compiled method I am defining" "asArray is used to not bump into a bug when comparing compiled methods." ^ self allSelectors asArray collect: [ :s | self lookupSelector: s ] However...it answer not only the ones defined by itself, but also from superclasses. So...the comment is confusing for me. I am the only one ? cheers mariano
Yes, the comment does not match the implementation. #Luc 2010/10/19 Mariano Martinez Peck <marianopeck@gmail.com>
It says:
Behavior >> allMethods "Return the collection of compiled method I am defining" "asArray is used to not bump into a bug when comparing compiled methods."
^ self allSelectors asArray collect: [ :s | self lookupSelector: s ]
However...it answer not only the ones defined by itself, but also from superclasses. So...the comment is confusing for me. I am the only one ?
cheers
mariano
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
participants (2)
-
Luc Fabresse -
Mariano Martinez Peck