[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: table.concat - strings and numbers only?
- From: Matthew Wild <mwild1@...>
- Date: Tue, 22 Jun 2010 01:54:20 +0100
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
time.
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.
Matthew