On 23 Jun 2009, at 14:03, mark richardson wrote:
Is there some way I can define and compile a functor which references a
cell object that is defined in the MAIN script?

You can hand over a cell explicitly, or define it in another functor.

Imagine that the cell variable is some master global variable that I
want available to a functor procedure without having to pass it back and
forth explicitly.

What I do for exactly this purpose is having an extra functor with all the "global" variables, and then I import that functor by every functor that needs it.

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