lua-users home
lua-l archive

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


> I was under the impression that we would still have debug.setfenv and
> debug.getfenv to fill the same purpose? Now I'm hearing that functions
> won't have environments in the language at all?

>From the original proposal:

* http://lua-users.org/lists/lua-l/2010-02/msg00753.html

  We also came up with a new concept for environments in Lua 5.2; its
  main merit is simplicity. Lua functions do not have environments any
  more.

-- Roberto