On Thu, 2006-08-24 at 13:01 -0700, Erick Tryzelaar wrote:

> Not sure if that's parsable though. The felix way I feel would be to use 
> blocks:
> 
> ------------------------
> var x = 0;
> var y = 0;
> var z = 0;
> parallel {
>   x = 1; print x; endl;
> } {
>   y = 2; print y; endl;
> } {
>   z = 3; print z; endl;
> };
> 
> print x; endl;
> print y; endl;
> print z; endl;
> ------------------------
> 
> Can that be parsed?

Probably .. but it smacks of just using a library
function. The problem here is that you'd need to
fold over a list:

        parallel ( List::Empty[0->1] + 
                { ... } + { ... } + ... + { ... }
        });

where I'm using + for lists to construct the list, but
the overload chain requires an empty list to start off.

This is pretty messy compared with Ocaml's

        [a; b; c] 

notation for lists.

-- 
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Felix-language mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to