lua-users home
lua-l archive

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

20.8.2004 kello 19:31, Rici Lake kirjoitti:

I don't see passing parameters to main chunks being particular difficult now;

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[0]'. Anyhow, I feel the 'arg' thing should away.


(..or was it Karthago? ;)