lua-users home
lua-l archive

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

OK, I think I follow that.  And in the following case, when
the new chunk is loaded, it gets the global table (which has
changed) rather than inheriting the environment of the

          "assert(loadstring('print(x,y) y=2'))()\n"

Seems like this could cause some wierd things to happen.
Anything further to help qualify this as documented /
undocumented / bug / feature?


"Mark Hamburg" <> wrote in message">
> I believe the answer is that you've redefined the globals
for C functions
> but you haven't changed the global environment for the
compiled chunk.
> Mark