Alan Oswald wrote:
I'm looking at the use of relational programming in connection with databases. I've created a functor for the code that defines the Choose procedure and the Relation Class and its methods. Now I need to know how to access these from the main program so that I can do Rel = {New RelationClass init} etc. I know it's in the book but I also know that I will get a quick concise answer that will save me a lot of time finding what I need. Alan
There's an example in section 9.6 of CTM (page 654) that
explains everything including how to call the relation from
the main program (see section 9.6.2).  It's very easy:
dictionaries can be manipulated directly in the main program,
but any code using choice must be encapsulated inside a
Solve or SolveAll.

Peter


_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to