lua-users home
lua-l archive

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


>I think lhf is forgetting that the globals function is not available after
>you switch out the global table.  You'll have to store a local reference to
>at least that function.

Yes, sorry about that. You need "do local globals=globals ... end".
I posted something similar for a redefinition of dofile just the other day.
--lhf