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 <lua@corsix.org> wrote:
> On Thu, May 19, 2011 at 10:51 PM, Patrick Donnelly <batrick@batbytes.com> 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