Chris Rathman wrote:
Rational = functor export makeRat : MakeRat define fun {MakeRat N D} [N D] end endOneHalf = {Rational.makeRat 1 2}
Am I missing something obvious?
Yes, you have to "apply" it first, see: http://www.mozart-oz.org/documentation/system/node7.html#chapter.module For example: RationalF = functor ... end [Rational]= {Module.apply [RationalF]} OneHalf = {Rational.makeRat 1 2} HTH, Andreas _________________________________________________________________________________ mozart-users mailing list [email protected] http://www.mozart-oz.org/mailman/listinfo/mozart-users
