Can anyone tell me how the -e option of the oz compiler is useful? It
doesn't seem to have access to any of the OPI pre-loaded modules, like
Show. Nor does it seem to have access to the module Module, which
would allow it to load other modules. Thus, I can't get it to print
any output, nor can I get it to access any modules which would give me
output.
My reason for being interested is that I would like a way to run OPI
modules from the command-line.
Max Wilson
% in file foo.oz
local
functor F
import System Application
define
{System.show didit}
{Application.exit 0}
end
in
[_] = {Module.link [F]}
end
% Now, try to feed it to the compiler
bash-3.00$ ozc -e foo.oz
Mozart Compiler 1.3.1 (20040616) playing Oz 3
%%% feeding file foo.oz
%********************* binding analysis error *******************
%**
%** variable Module not introduced
%**
%** in file "./foo.oz", line 9, column 10
%** ------------------ rejected (1 error)
--
Be pretty if you are,
Be witty if you can,
But be cheerful if it kills you.
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users