[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [proposal] Libary changes
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Fri, 7 Oct 2011 10:49:40 -0300
> What I propose is to create a new module named "sys", that will
> respectively contain that data instead, like:
>
> sys.argv instead of arg
> sys.globals instead of _G
> sys.version instead of _VERSION
Save the file below and you can do "lua -lsys" though arg will probably not
work.
-- sys.lua
sys = {
argv = arg,
globals = _G,
version = _VERSION,
}
return sys