On MethodBuilder defined...
�� ��>> blockClosure
|newSource|
methodSelector isArray
ifFalse: [ newSource := methodSelector ]
ifTrue: [��
newSource := ''.
methodSelector do: [ :token | newSource := newSource , token asString, ' ' ]
].
newSource := newSource, String crlf,
blockClosure sourceNode newSource allButFirst allButLast.
methodClass compile: newSource
now the following can be evaluated...
SomeClass >>#(echo: anObject) >> [ ^anObject ].
SomeClass new echo: 'doyoulike'.�� ��"==>��doyoulike"
Another form to define a method might be...
SomeClass >> [ echo: anObject
�� �� ^anObject ]
I think that looks better, but would require a loosening of block syntax.
cheers -ben
>> - Then we are starting to reverse engineering the ecompletion system
>> and I'm learning it.
>> I would like to know if Calypso can communicate with ecompletion the
>> fact that we are defining a method. Then I have to check how the
>> system can know that we are typing method argument when defining the
>> signature but I think that this is not related to calypso.
>>
>> Stef
>>