Thanks--this does the trick!

There's one further issue I'm running into, and that is printing strings. For example, if I write this:

Z in
Z = tmApp(tmVar ("x") tmVar("x"))
{System.show Z}

I get numeric ASCII code representations of the strings as output ([120]), instead of a nice "x", using System.show. I get runtime errors when using System.showInfo. Any way to deal with this, short of writing a predicate to print out the components with showInfo? =(

Thanks again,
Dan


At 02:19 AM 11/11/2006, you wrote:
I use the following for my code samples:

functor
  import
     System(print:Print show:Show)
     Application
     Space
     OS
     Property

  define
      ,,,, my code goes here ....

     {Application.exit 0}
  end

But then, I'm using print for the output, so you'll have to put in the appropriate input statements for the Browse module.


Daniel Zingaro wrote:
Hi all,

Due to screen-reader software I use, the Mozart GUI is unavailable to me, so I'm stuck using ozc from the commandline (via Cygwin).

I *think* I'm supposed to use 'ozc -x <filename>' to compile into an executable, but the problem is that code I take from the Oz tutorial doesn't work. I get errors stating, for example, that Browse or Show is undefined; I assume these things are loaded into the GUI by default, but I have no idea how to explicitly do so. When I use ozc with no -x (I.E. default), I get errors as well.

I found a 'hello world' example that began with "functor", followed by "import" and two imports (application and system), but when I put this at the top of any of the tutorial samples and compile with ozc, I get "expected EOF" errors.

Can someone help me get started? =)

Appreciated,
Dan


_________________________________________________________________________________
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