[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: setfenv/getfenv
- From: Leo Razoumov <slonik.az@...>
- Date: Tue, 12 Jan 2010 18:48:58 -0500
On 2010-01-12, Tony Finch <dot@dotat.at> wrote:
> 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.
Metatables/metamethods are such an important part of Lua that making
getmetatable unreachable for a chunk or plugin will severe handicap
it.
--Leo--
- References:
- setfenv/getfenv, Roberto Ierusalimschy
- Re: setfenv/getfenv, Francesco Abbate
- Re: setfenv/getfenv, Nicolas
- Re: setfenv/getfenv, Roberto Ierusalimschy
- Re: setfenv/getfenv, Leo Razoumov
- Re: setfenv/getfenv, Roberto Ierusalimschy
- Re: setfenv/getfenv, Leo Razoumov
- Re: setfenv/getfenv, Roberto Ierusalimschy
- Re: setfenv/getfenv, Leo Razoumov
- Re: setfenv/getfenv, Tony Finch