[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua 5.1+ and variable-argument tables
- From: Asko Kauppi <asko.kauppi@...>
- Date: Fri, 20 Aug 2004 21:41:32 +0300
20.8.2004 kello 19:31, Rici Lake kirjoitti:
I don't see passing parameters to main chunks being particular
Then how do you do it?
I use a global 'arg' (doesn't have to be that name, but makes sense..)
and I do feel it's clumsy.
Especially annoying is the fact that in pure Lua5, the script cannot
know it's location. Imho, it should (could) get it at 'arg'.
Anyhow, I feel the 'arg' thing should away.
(..or was it Karthago? ;)