Comment in Behavior >> allMethods is wrong ?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Comment in Behavior >> allMethods is wrong ?

Mariano Martinez Peck
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
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Comment in Behavior >> allMethods is wrong ?

Luc Fabresse
Yes, the comment does not match the implementation.

#Luc


2010/10/19 Mariano Martinez Peck <[hidden email]>
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
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project