Variable not introduce

Enrique Iurleo quiquewolf02 at gmail.com
Tue Jun 19 01:39:27 CEST 2012


Hi list.. Well, I have a troubles with a functor. This is the code:

functor
export
   MyLang
   Assign
   Record
   Call2
   Call1
define
   fun {MyLang}
      fun lazy {Assign X}
         X
      end
      fun lazy {Record Xs}
         {MakeRecord s Xs}
      end
      fun lazy {Call2 F P1 P2}
         {F P1 P2}
      end
      fun lazy {Call1 F P1}
         {F P1}
      end
in
      mylang(assign:Assign record:Record call2:Call2 call1:Call1)
   end
end

And when i run "ozc -c functor.oz"

gives an error:

"variable Call2 not introduced"

and

"variable Call1 not introduced"

but with the other variables everything seems fine.

So, whats happen here? i hope your help thank you very much
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.gforge.info.ucl.ac.be/pipermail/mozart-users/attachments/20120618/33189536/attachment.html


More information about the mozart-users mailing list