lua-users home
lua-l archive

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

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: