Greetings,

I've used Oz for a few months in the OPI, but now I'm trying to
generate stand-alone programs so I can start them with scripts.  This
code works fine:

%% ozc -x hello.oz
%% ./hello
functor
import
  System Application
define
  {System.showInfo 'hello world'}
  {Application.exit 0}
end


However, when I run the code with
  ozc -e hello.oz
I get this message:
Mozart Compiler 1.3.2 (20071210) playing Oz 3

%%% feeding file hello.oz

%************************* expansion error **********************
%**
%** illegal use of nesting marker
%**
%** in file "./hello.oz", line 4, column 0
%** ------------------ rejected (1 error)


What's the diffence between "-e" and "-x followed by ./filename" ?  And
more to the point, what's the illegal nesting marker?  What's the
proper way to create "hello world" ?

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

Reply via email to