Accessing Classes in Functors.
Raphael Collet
raph at info.ucl.ac.be
Fri May 5 15:36:59 CEST 2006
Alan Oswald wrote:
> Peter, thank you. I have already studied that section. The problem I
> have is that the section (as with most of the book) is targetted at the
> OPI. If I put the code in the OPI I can use it without any problem.
> However, I want to take the code in 9.6.3 and create a functor from it.
> (No problem, I can do that.) Then I want to link the functor into my Oz
> program using
> [Relation] = {Module.link ['n://paradigms/oz/relation.ozf']}
> and then access the class and the choice function as implemented in this
> module from the Oz program. I already have a Solver module that allows
> me to access the SolveOne and SolveAll functions in the module. What
> I'm not clear about is how to make the call from the program to the
> classes and methods contained in the Relation functor.
Maybe the functor that defines the class should *export* it...
raph
More information about the mozart-users
mailing list