lua-users home
lua-l archive

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


On Tue, 12 Jan 2010, Leo Razoumov wrote:
>
> Correct me if I am wrong, in proxy tables for a key "foo"
> __index/__newindex are relevant only if the table does not already
> have key "foo". A chunk can do the following thing to mess everything
> up for all future invocations of the chunk within other "compartments"

If you don't want a chunk to mess with metatables, don't give it access to
the metatable functions.

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
GERMAN BIGHT HUMBER: SOUTHWEST 5 TO 7. MODERATE OR ROUGH. SQUALLY SHOWERS.
MODERATE OR GOOD.