Re: Question on get/setmetatable()
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Question on get/setmetatable()
- From: Andrew Gierth <andrew@...>
- Date: 2020年5月23日 14:05:13 +0100
>>>>> "Philippe" == Philippe Verdy <verdyp@gmail.com> writes:
Philippe> I'm not inventing the [[...]] notation:
Well, you'd need to invent something else, because [[...]] already has a
meaning in Lua. (t[[x]] is actually a function call, though not a very
obvious one.)
But more significantly: having language constructs to get at the
metatable, rather than using functions for it, makes life considerably
harder for sandboxing.
--
Andrew.