lua-users home
lua-l archive

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


OK, I'll bite...
I don't remember it off the top of my head (and can't take the time to look
anything up at the moment, but don't want to forget this), however...

Isn't there a simply way in Lua 5.0 to declare a function that takes all of
its arguments in a table?
Also, isn't there a way to expand a table back into a list of arguments?

Could this (or something simpler) be used to allow the trick Riki used to
add an automatic Self argument to a function taking 2 parameters to be used
with a function regardless of the number of parameters?

Frankly I'm a bit off balance in my Lua knowledge (too much C API use and
too little actual Lua coding), so maybe I'm missing something obvious here.

-----Original Message-----
From: lua-bounces@bazar2.conectiva.com.br
[mailto:lua-bounces@bazar2.conectiva.com.br]On Behalf Of
RLake@oxfam.org.pe
Sent: Wednesday, October 15, 2003 1:40 PM
To: Lua list
Subject: RE: Menus and submenus (WAS: Forward Declaration)


OK, I did what I should have done in the first place, which is put it on
the Wiki. E-mail can be a pain.

see: <http://lua-users.org/wiki/AsciiMenu>

Thanks to Peter Shook for the colour version.

R.