Re: __newindex rawsetless semantics?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: __newindex rawsetless semantics?
- From: Roberto Ierusalimschy <roberto@...>
- Date: 2014年10月14日 11:19:22 -0300
> why not to expose rawset()? is it for security reasons? it might be
> easier to provide a slightly patched version that only skips user's
> __newindex but still respects those defined by your environment.
In Lua, there are all sorts of ways to provide some functions to some
environments but not to others. (For instance, you can save a local copy
of rawset in a module before removing it from the global environment.)
-- Roberto