lua-users home
lua-l archive

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


On Wed, Oct 19, 2011 at 4:15 PM, Hisham <hisham.hm@gmail.com> wrote:
>   env = f(env) -- <=== allow f to redefine env

A: a small bug, this returned `env` isn't put back into packages.loaded

B: your 'f' can add a metatable to env and it will hold, no need to
return it back.

-- 
Javier