[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Multiple functions: was the gc
- From: Wim Couwenberg <w.couwenberg@...>
- Date: Tue, 22 Aug 2006 21:26:12 +0200
Attached is another approach. Give it a spin and then try to unravel
what's happening! :-)
Unfortunately, that doesn't solve your "bar problem" either... (The tlg
function again replaces just one environment.)
Unless you do something like:
-- load script
local script = loadfile "somescript.lua"
-- reroute to thread local globals
This reroutes all function definitions in the script to use thread local
globals in one go.