[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Lua Basics: modules()?
- From: William Trenker <wtrenker@...>
- Date: Mon, 12 Sep 2005 15:23:39 -0400
>From studying various Lua modules I see that experienced Lua
programmers usually set up a number of local variables that carry the
value of standard library functions, like this:
local assert, error, _G, loadstring, loadfile, _pcall, type, unpack,
xpcall = assert, error, _G, loadstring, loadfile, pcall, type, unpack,
xpcall
What is the point of this? On the surface it appears to be redundant.
But since it is often used by the experts I'm obviously missing
something important.
Thanks very much,
Bill