lua-users home
lua-l archive

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




Le sam. 23 mai 2020 à 15:05, Andrew Gierth <andrew@tao11.riddles.org.uk> a écrit :
>>>>> "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.)

I'm very curious about which function call is made, because "[x]" inside "[]" cannot be a valid _expression_ that would perform some "magic" function call (which function?? with which parameters?? Couldn't this magic function call be some "getmetatable(object)", but with which "object "and how is then used "x"?)