lua-users home
lua-l archive

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


On Thu, Sep 15, 2011 at 1:22 PM, Eric Man <lericl.mailbox@gmail.com> wrote:
> I get it now; _ENV basically acts like the _G table. (but does something
> else as well).

In particular, _writing_ to _ENV has an effect (whereas writing to _G
has no consequences apart from confusing people who expect it to have
its original value)

> I searched for it on the 'net, found this "loadin" function, but its not in
> my lua 5.2 beta!

It has been changed to load() in the new beta, works pretty much the
same as before.

http://www.lua.org/work/doc/manual.html#pdf-load

steve d.