lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


How about an __index metatable entry that is a function that
checks to see if what it is loading is a function and sets the
environment of each function that it gets from the  master
environment?

DB

What I want isn't possible, other than the hard way: 1) loading all the
code into each thread separately; or 2) updating the environment of
every object in the new thread; or 3) importing objects manually and/or
explicitly inheriting the environment from within every function that
wants it.