lua-users home
lua-l archive

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


> The behaviour I'm after would instead create a new key/value in the
> inner scope if it didn't exist there already.

Evaluate scripts in their own empty environment that have __index to the
outer one. So you can read values from the outer scope but write only
in the inner one.