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: Renato Maia <maia@...>
- Date: 2011年6月30日 11:52:19 -0300
On 30 Jun 2011, at 06:59, steve donovan wrote:
(My memory fails me, but there is an extension that allows this kind
of thing)
I don't know which extension you are thinking about, but such function
sure fits well in 'vararg' package, so I just added in 'http://www.tecgraf.puc-rio.br/~maia/lua/vararg-1.1.tar.gz'
.
$ lua -lvararg -e'print(table.concat({vararg.map(tostring,
table,pcall,nil)}, " | "))'
table: 0x101b10 | function: 0x101060 | nil
--
Renato Maia
Computer Scientist
Tecgraf/PUC-Rio
__________________________
http://www.inf.puc-rio.br/~maia/