> If the scope of 'x' is intended to be global, then the type of 'x' > must be a Union. > > x:Union(Integer,Float) > if cond then > x := 1 > else > x := 2.3
Of course that cannot work. What function pointer for multiplication should the compiler put in for the following x := x*x ? Union does not export a multiplication. We don't have that yet that properties of the underlying domains lift to the Union. Union in SPAD is rather dumb. Ralf ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ open-axiom-devel mailing list open-axiom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/open-axiom-devel