Re: tostring(): vararg in, vararg out?
[
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: 2011年6月30日 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.