lua-users home
lua-l archive

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


> 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