lua-users home
lua-l archive

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


I have done the same at times. I have code that that is
doing this that has been running for quite a while.
DB

William Ahern wrote:

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?