lua-users home
lua-l archive

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


Greetings All,
let's say I have a thread, which I replace the environment with a new table
and add a meta table to that table which uses __index and __newindex to point to another environment;

when I load code into the thread (using dofile for instance) will the functions be placed in my new environment table, or in the old one.

In short, does loading code functions obey a __newindex metatable?

thanks in advance,

-Raymond