|
|
||
|
I have done the same at times. I have code that that is doing this that has been running for quite a while. DB
Huh. This _seems_ to work:
function func_called_from_each_thread() setfenv(1, getfenv(0))
... end
Are there any side effects? Is this only setting the environment for this particular invocation of the function?