Hi Bert --
I was wondering if the Squeak list generally knew that language and compilation (and hence even classes) are object oriented. Thanks for pointing it out. We were at one time going to go further and just let an object also be a virtual address space -- this would allow real encapsulation on anyone else's code and state, etc.
Cheers,
Alan
At 01:42 PM 8/26/2007, Bert Freudenberg wrote:
Just for fun - the tiny attached change-set allows #asPipe to get piping behavior for cascades:
Squeak asPipe ps: 'aux'; grep: 'fabio'; sort
It makes these two expressions equivalent
((((4 + 2) * 3) + 3) * 2) 4 asPipe + 2; * 3; + 3; * 2
Now I wouldn't use this in production but for interactive exploration it might actually be useful. Similar to implementing Symbol>>#value: to allow "(1 to: 10) collect: #squared".
Btw, did you know each class can declare its own parser and compiler class? Experimenting with the syntax does not necessarily have to break other's stuff.
- Bert -