[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Question on get/setmetatable()
- From: Andrew Gierth <andrew@...>
- Date: Sat, 23 May 2020 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.