[Fwd: oz version 1.3.1]

Raphael Collet raph at info.ucl.ac.be
Thu Aug 17 11:20:12 CEST 2006


Raphael Collet wrote:
> 
> I am an MSc student at the university fo Westminter London Uk.  I am currently
> doing my final year project using oz version 1.3.1 downloaded from
> www.mozart-oz.org website.  I have been having problems with all agent and
> database code including examples on the website.  I have attached a copy of my
> last database example code.  Please advice if I need extension to code or if
> version does not support agents.  I am getting an error on line 2 as illegal
> use of nesting marker.

You are probably trying to execute the functor from the OPI.  You have 
to compile it with ozc.  If your functor is in file Blah.oz, compile it 
with a command line like

	ozc -c Blah.oz

This produces the file Blah.ozf.  You can then link the functor to make 
it a module.  The module is simply a record with all the exported 
features of the functor.

	declare
	[MyBlah]={Module.link ["Blah.ozf"]}
	{MyBlah.add foo}

For more details consult the Application Programming Tutorial.

Cheers,
raph




More information about the mozart-users mailing list