Dear Gilmullin,

Sorry for the late reply.
On Jul 15, 2009, at 6:26 PM, Rusreg wrote:
Thanks a lot for your description. I decide use the following form of import:

functor
import
        Module at '%PROJECTS%/Oz/TestProject/SomeFunctor.ozf'
define
...
end

This declaration allow quick declaration of variable that store imported module ('Module' in example above). One question - is it possible to specify the functor without definition full path to file (like specifying system functor, only by name), as variant by relative path?

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'


You know Russian a little?


Only very few words.

Best
Torsten

--
Torsten Anders
Interdisciplinary Centre for Computer Music Research
University of Plymouth
Office: +44-1752-586219
Private: +44-1752-558917
http://strasheela.sourceforge.net
http://www.torsten-anders.de


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

Reply via email to