Hi all,

I'm trying to understand functors (so I can teach them and use them),
and I spent a lot of time trying to figure out why a functor statement
doesn't do what it seems like (to me) it should do.  Probably I'm
trying to do something that is wrong, so I'd appreciate an
explanation.

What I did was to put te following code in FunStmt.oz:

   declare
   functor FunStmt
      System(showInfo)
   define
      X = 1
   in
      {System.showInfo X}
   end

And then I tried several things, all of which seem to have no effect.
I did:

   ozc FunStmt.oz
   ozc -e FunStmt.oz

and after both of these, there are no error messages of any sort, but
there is no file FunStmt.ozf produced.  Similarly feeding the buffer
to the OPI doesn't given any errors, but nothing happens in the
emulator either.

Can someone please explain it?

        Gary T. Leavens
        Department of Computer Science, Iowa State University
        229 Atanasoff Hall, Ames, Iowa 50011-1041 USA
        http://www.cs.iastate.edu/~leavens  phone: +1-515-294-1580


_________________________________________________________________________________
mozart-users mailing list                               
mozart-users@ps.uni-sb.de
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to