[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: Menus and submenus (WAS: Forward Declaration)
- From: virgil@... (Virgil Smith)
- Date: Wed, 15 Oct 2003 13:57:57 -0500
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.
[mailto:firstname.lastname@example.org]On Behalf Of
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.
Thanks to Peter Shook for the colour version.