lua-users home
lua-l archive

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



On Mon, Mar 21, 2016 at 09:51 Egor Skriptunoff <egor.skriptunoff@gmail.com> wrote:
Hi!

Taking into account the fact that since Lua 5.3 the "table" library respects some metamethods, it seems quite illogical that "table.concat()" does not honor "__tostring" metamethod to correctly display tables containing any objects, not only strings and numbers.

-- Egor


I might be missing something but `__tostring` relates to `tostring(t)` and `__concat` is related to `t1 .. t2`

Maybe you have something in mind that I'm missing.