John,

I am not sure you can use the OPI to create these functors.

Try this.

cd .../MozartSource/share/demo

ozc -c DemoUrls.oz
ozc -x AnimatedQueens.oz

You should then be able to execute AnimatedQueens from the command line.

I think the OPI is not intended for module creation, I am pretty new to oz myself, although I am finding it very liberating.

Hope this helps with your journey.

-Justin

P.S. BTW. If you are using OS X and Mozart 1.4, to gain access to the compiler you need to add this to your path

export PATH=$PATH:/Applications/Mozart.app/Contents/Resources/bin/



On Sep 19, 2008, at 6:40 AM, John Sampson wrote:

Hello -

Many thanks - the code is not mine - it is in the Queens.oz file which
is part of the
distribution (\mozart\examples\fd\graphics\Queens.oz).

I have not edited it at all. Does the code in this file work in other machines?

Regards

_John Sampson_



On Fri, Sep 19, 2008 at 10:01 AM, Raphael Collet
<[EMAIL PROTECTED]> wrote:
Dear John,

This is a syntax error, and it probably has nothing to do with Tk. This error often reflects a misuse of the '$' notation. If you show us your
code, we can certainly point out the mistake, and show you "the right
way"... ;-)

Cheers,
raph

On Fri, Sep 19, 2008 at 10:29 AM, John Sampson
<[EMAIL PROTECTED]> wrote:

Hello -

I am testing to see whether Oz graphics (e.g. Tk) works on my machine.

I paste the code in Queens.oz into the Mozart programming interface
and feed in the buffer (via the 'Oz' menu).

An error is reported:

%************************* expansion error **********************
%**
%** illegal use of nesting marker
%**
%** in file "Oz", line 25, column 0
%** ------------------ rejected (1 error)

What have I missed, or is there something wrong with Queens.oz?

Regards

_John Sampson_

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


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

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

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

Reply via email to