Proposal for implementing services in squeak, need feedback
Markus Gaelli
gaelli at emergent.de
Wed Mar 17 09:19:40 UTC 2004
Hi Romain,
I like it. Maybe you want to consider to deliver several services and
not only one.
Something like
Object >> services
^OrderedCollection with: self service
should be easy to write and overwrite ... ;-)
(I assume the ':' after "ExtractMethodRefactoring >> service" below
is a typo)
Cheers,
Markus
Am Dienstag, 16.03.04 um 09:56 Uhr schrieb Romain Robbes:
> So here would be the way to define a service
>
> ExtractMethodRefactoring >> service :
> "answer a service using the current code selection to extract it"
> ^ Service new label: 'Extract method';
> description: 'Extracts the current code selection, in a new method
> using the necessary parameters, replacing the selection
> with a self message send.'
> action: [:class :selector :selection |
> (self extract: selection from: selector in: class) execute]
More information about the Squeak-dev
mailing list
|