Cascading ?
Damien Cassou
damien.cassou at laposte.net
Thu Aug 17 10:07:54 UTC 2006
Klaus D. Witzel wrote:
> On Thu, 17 Aug 2006 11:12:36 +0200, Damien Cassou wrote:
>
>> test:=OrderedCollection with: 'first'.
>> test
>> add: 'second';
>> size negated
>>
>
> (test add: 'second'; size) negated is what you can do with the result of
> your cascaded messages.
Maybe my example was not clear enough:
test:= MyObjectModel
test
getAllChanges;
storageStrategy storeNow;
readyToContinue
I think it is clear that #storeNow is sent to the result of 'test
storageStrategy'. And #readyToContinue should still be sent to 'test' so
brackets are not possible in this example.
More information about the Squeak-dev
mailing list
|