Ok, one argument (and procedures) now works:

/////////////////////////////////
#import <flx.flxh>

fun f(a:int)=> 3 * a;
println$ f 2;
println$ f (a=4);

fun g(x:struct {a:int;})=>9 * x.a;
println$ g (a=2);
/////////////////////////////////////

NOTE:

Client Error binding expression (g struct {x=struct {a=2;};})
CLIENT ERROR
[lookup_name_with_sig] Can't find g of struct {x:(struct
{a:(int<1923>);});}
In ./fr.flx: line 56, cols 1 to 21
55: 
56: println$ g (x=(a=2));
    *********************
57: 

This does NOT work .. yet .. :)


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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to