lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

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 '' .

$ lua -lvararg -e'print(table.concat({, table,pcall,nil)}, " | "))'
table: 0x101b10 | function: 0x101060 | nil

Renato Maia
Computer Scientist