[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua 5.2, setfenv and the C API
- From: Leo Razoumov <slonik.az@...>
- Date: Sun, 10 Jan 2010 18:42:10 -0500
On 2010-01-10, Alexander Gladysh <firstname.lastname@example.org> wrote:
> On Mon, Jan 11, 2010 at 02:30, Brett Nash <email@example.com> wrote:
> > So a quick question - do we expect the C API of setfenv to be
> > changed?
> > There is no deprecation note specifically, but I'd rather
> > check ;-)
> See this post by Roberto:
> lua_getfenv and lua_setfenv will continue, as debug.setfenv and
> So, I take it that C API stays the same.
Taking this statement at its face value could one simply create a
module fenv that exports lua_getfenv/lua_setenv as Lua functions and
get back 5.1 behavior by simply doing require "fenv" ??