[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: tostring(): vararg in, vararg out?
- From: steve donovan <steve.j.donovan@...>
- Date: Thu, 30 Jun 2011 11:59:00 +0200
2011/6/30 Pierre-Yves Gérardy <pygy79@gmail.com>:
> table.concat{tostring(objects,...)}
Convenient, yes, but why just tostring? A useful idiom would be this:
table.concat(mapvar(tostring,...))
where res1,... = mapvar(fun,val1,...)
Easy to do efficiently in C (using Lua requires packing and unpacking)
(My memory fails me, but there is an extension that allows this kind of thing)
steve d.