On Jun 28, 2007, at 3:26 AM, Bert Freudenberg wrote:

> How about simply using "..." itself as token for the next argument?
>
> Object sum ...
> [
>     | sum next |
>     sum := 0.
>     [(next := ...) == nil] whileFalse: [sum := sum + next].
>     ^sum
> ]
>
> [
>    Object sum : 1 : 2 : 3 : nil.
> ]

I've just committed changes that make this example work exactly as  
written.  The changes have not been thoroughly tested nor have the  
corresponding intermediate .c files been pulled backwards into the  
'bootstrap'.  Please hammer on this and let me know of any problems,  
other than the obvious one that '...' is no longer a legal statement  
separator (even though '..' and '. . .' are).

Cheers,
Ian

_______________________________________________
fonc mailing list
[email protected]
http://vpri.org/mailman/listinfo/fonc

Reply via email to