lua-users home
lua-l archive

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

It was just pointed out to me in IRC that table.concat accepts numbers
as well as strings, a point on which I have been mistaken for some

Given that it supports numbers, is it really that much harder to allow
it to accept anything with a __tostring? I have often had to write
loops over tables (often producing new tables) running tostring() over
all values before passing to table.concat, just to make sure it won't
throw an error.