[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Chaining methods
- From: Pavel <temp213@...>
- Date: Sun, 16 Feb 2020 14:52:23 -0700 (MST)
Sam Putman wrote
> On Wed, Feb 12, 2020 at 4:59 AM Pavel <
> temp213@
> > wrote:
> I think the reason Lua doesn't work this way, is that it imposes a speed
> penalty on any nil-returning lookup, to every table so created.
Good point, G(L)->mt[LUA_TTABLE], when used as default metatable for new
tables could still be equal to NULL by default.
But at least there would be an option to set it to table library or
whatsoever when required.
--
Sent from: http://lua.2524044.n2.nabble.com/Lua-l-f2524044.html