lua-users home
lua-l archive

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


Peter Cawley wrote:
As table.concat does not accept things with __concat metamethods, they
do not need to be considered. Likewise, numbers need no special
treatment as lua_isstring / lua_tolstring automatically convert
numbers to strings.

You're quite right - I'd always assumed that's why they use the convoluted concat method without ever actually checking that table.concat honours __concat.

Now I too, am left scratching my head ;).

- Alex