Cascading ?
Damien Cassou
damien.cassou at laposte.net
Thu Aug 17 17:15:39 UTC 2006
Lukas Renggli wrote:
>> >> test:= MyObjectModel
>> >> test
>> >> getAllChanges;
>> >> storageStrategy storeNow;
>> >> readyToContinue
>> >>
>> I know how to make it work in fact. What I don't understand is why the
>> smalltalk doesn't allow this kind of construction.
>
> Because it is ambiguous. How should the compiler know if it should
> send #readyToContinue to 'test' or the result of 'test
> storageStrategy'?
You mean something like:
test:= MyObjectModel
test
getAllChanges;
storageStrategy
storeNow;
readyToContinue
Yes, you are perfectly right. Thank you
More information about the Squeak-dev
mailing list
|