You can specify import functors with a relative path, relative to the directory of the importing functor itself. E.g., if your functor is stored in, say, /home/me/Oz/TestProject/Main.oz, then you can import a second functor stored at home/me/Oz/TestProject/src/MyFunctor.oz inside Main.oz with

import
  MyFunctor at 'src/MyFunctor.oz'

When I refer to source file of the functor Functor1.oz in another functor Functor2.oz and then try use Functor2 from any script, below error appear:

"Magic header not found (not a pickle?)"

When I refer to compiled functor:

import
  MyFunctor at 'src/MyFunctor.ozf'

then it work ok.


Maybe, this is windows-specific error (I don't test it on Linux).


Very interesting, what build--run-test cycle usually use using in mozart develop? Now I create functors, then compile them into ozf files then test it from test script that look like:

declare [Parser LList LChar]= {Module.link ['c:/Documents and Settings/rushan/data/workspace/devel/oz/up/LList.ozf' 'c:/Documents and Settings/rushan/data/workspace/devel/oz/up/LChar.ozf']}

{Explorer.all proc {$ Z} X=Z in {LChar.alpha &a X} end}

/ You know Russian a little?/

Only very few words.

I answer becouse you translate my family right and use the 'Strasheela' name 
for your project (that hero of our soviet book).


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

Reply via email to