Cascading ?

Klaus D. Witzel klaus.witzel at cobss.com
Thu Aug 17 11:02:14 UTC 2006


On Thu, 17 Aug 2006 12:43:54 +0200, 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'?

It would be interesting to find a language construct which does support  
Damien's expression. Not that I want everybody to write as much cascades  
as possible but, I want to be able to do so.

/Klaus

> Lukas
>
>





More information about the Squeak-dev mailing list