lua-users home
lua-l archive

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


On Wed, Mar 31, 2010 at 5:43 PM, Jonathan Castello <twisolar@gmail.com> wrote:
> On Wed, Mar 31, 2010 at 5:15 AM, Roberto Ierusalimschy
> <roberto@inf.puc-rio.br> wrote:
>> BTW, note that setfenv/getfenv are not moving to the debug library, but
>> out of the language, as functions will not have environments anymore.
>
> 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?
>
> ~Jonathan
>

Yes, exactly. See Roberto's thread "a new proposal from environments":

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

"...Lua functions do not have environments any more."

-Duncan