On Nov 26, 2007 6:26 AM, skaller <[EMAIL PROTECTED]> wrote:
> /////////////////////////////////////
> type smi = "";
> const i : smi = "";
> fun apply(a:double,b:smi)=>dcomplex (0.0,a);
> fun add(a:double, b:dcomplex)=> dcomplex(a,0.0) + b;
>
> println (1.0 + 2.0i);
> /////////////////////////////////////


Oh cool! That does make mathematical sense, since "1+2i" equals "1+(2
* i)". I wonder if we could use reductions to be able optimize away
the "i" when it's appropriate.

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