[Pharo-dev] method vs. selector consistency?

Igor Stasenko siguctua at gmail.com
Thu Aug 29 05:14:26 EDT 2013


On 29 August 2013 09:09, Stéphane Ducasse <stephane.ducasse at inria.fr> wrote:

> methodsInCategory: aName
>         "Answer a list of the methods of the receiver that are in category
> named aName"
>
>         | aColl |
>         aColl := Set withAll: (self organization listAtCategoryNamed:
> aName).
>         ^ aColl asArray sort
>
>
> allMethodsInCategory: aName
>         "Answer a list of all the methods of the receiver and all its
>         superclasses that are in the category named aName"
>
>         | aColl |
>         aColl := OrderedCollection new.
>         self withAllSuperclasses do: [:aClass |
>                 aColl addAll: (aClass organization listAtCategoryNamed:
> aName) ].
>         ^ aColl asSet asArray sort
>
>
> uncategorizedMethods
>         ^ self methodsInCategory: Protocol unclassified
>
> all these methods returns selectors and not compiled methods.
>
> So I would like to rename them accordingly.
> What do you think?
>
> Stef
>

yes, if they return selectors, the name should talk about selectors..


-- 
Best regards,
Igor Stasenko.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20130829/a5e411d2/attachment-0002.html>


More information about the Pharo-dev mailing list