[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: default LUA_TTABLE metatable, like for strings
- From: "temp 213 qwe" <temp213@...>
- Date: Sun, 17 Mar 2019 22:25:12 +0600
On Sun, 17 Mar 2019 12:42:32 -0300
Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:
What problem does this proposal solve?
Absence of default metatables.
This results, in some cases, that all the tables needs to be
created by some additional constructor function, that set the
metatable, which is a bit annoying, instead of setting it
once, for all the tables.
Which actually is not a problem, but more like a syntactic
sugar.
Plus it makes it uniform with the strings & strings library.
("string"):reverse()
({1,5,2,4,3}):sort()