[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: __tostring and string.format
- From: Alexander Gladysh <agladysh@...>
- Date: Mon, 6 Dec 2010 16:36:42 +0300
On Mon, Dec 6, 2010 at 09:11, steve donovan <steve.j.donovan@gmail.com> wrote:
> On Mon, Dec 6, 2010 at 6:45 AM, HyperHacker <hyperhacker@gmail.com> wrote:
> string.format is one of the important string functions and it would be
> good if this kind of behaviour was built-in and hence more efficient.
If you're not sure of the argument type, you always can call
tostring() on it explicitly, no?
> But then we could ask the very same question about table.concat, which
> also doesn't use tostring...
Why should it?
Alexander.