[Pharo-project] Proposal to refactor MethodFinder with pragmas

Damien Cassou damien.cassou at gmail.com
Fri Jun 24 05:25:02 EDT 2011


Currently MethodFinder uses a list of acceptable selectors to execute.
This list of selectors is not maintained which results in a lot of
selectors to exist only in this list as they have been removed in the
system. I propose to use pragmas on classes to generate this list
automatically.

Here is an example

Magnitude class>>finderApprovedMethods
       <finderApproveInstanceMethod: #max:>
       <finderApproveInstanceMethod: #min:>
       <finderApproveInstanceMethod: #min:max:>
       <finderApproveInstanceMethod: #< >
       <finderApproveInstanceMethod: #<= >
       <finderApproveInstanceMethod: #< >
       <finderApproveInstanceMethod: #<= >
       <finderApproveInstanceMethod: #between:and: >

What do you think?

-- 
Damien Cassou
http://damiencassou.seasidehosting.st

"Lambdas are relegated to relative obscurity until Java makes them
popular by not having them." James Iry




More information about the Pharo-dev mailing list