On Fri, 2007-09-21 at 18:09 +1000, skaller wrote:
> Default arguments are now implemented.
> 
> ///////////////////////////////////
> #import <flx.flxh>
> 
> fun df(a:int=1,b:long)=> long a + b;
> println$ df (b=2L); // a should default to 1
> ////////////////////////////////////
> 
> BUGS: The argument must be a record. The empty record
> or unit tuple doesn't work. Will fix soon I think.

Fixed: empty tuple (unit) now works. Didn't bother
with empty record: who is going to write

        struct {}

when they can write

        ()

?? :)


-- 
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