lua-users home
lua-l archive

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


On 2010-01-10, Alexander Gladysh <agladysh@gmail.com> wrote:
> On Mon, Jan 11, 2010 at 02:30, Brett Nash <nash@nash.id.au> 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:
>
>  http://lua-users.org/lists/lua-l/2010-01/msg00169.html
>
>         lua_getfenv and lua_setfenv will continue, as debug.setfenv and
>  debug.getfenv.
>
>  So, I take it that C API stays the same.
>
>  Alexander.
>

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" ??

--Leo--