So with the current commit, this:

/////////////////////////////////////
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);
/////////////////////////////////////

produces:

dcomplex(1,2)

as output. The simple requirement is that 'i' has have some
double value applied to it (not necessarily a literal).
For example

        a + b i

would also work.

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