lua-users home
lua-l archive

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


On Thu, May 19, 2011 at 6:04 PM, Peter Cawley <[email protected]> wrote:
> On Thu, May 19, 2011 at 10:51 PM, Patrick Donnelly <[email protected]> wrote:
>> >From the main thread (with no running functions):
>> lua_replace(L, LUA_ENVIRONINDEX);
>
> Surely things will break if you use LUA_ENVIRONINDEX with no running functions?

Ah, yes. So don't replace LUA_ENVIRONINDEX :).

-- 
- Patrick Donnelly