[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Getting Lua script name without legacy arg
- From: "Sam Roberts" <vieuxtech@...>
- Date: Mon, 10 Nov 2008 08:39:51 -0800
On Mon, Nov 10, 2008 at 7:58 AM, Geoff Richards <Ni1phahs@ungwe.org> wrote:
> I've just realised that I'm using the old 'arg' global in a script rather
> than the new vararg syntax, but I don't know an equivalent way to get the
> value for arg. I was using it to figure out a file's name based on
arg is no longer used for varargs, but it does continue to be used as
the table the lua executable places the argv into.
So, your code is good.