lua-users home
lua-l archive

Re: Lua 5.2, setfenv and the C API

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


On Mon, Jan 11, 2010 at 02:42, Leo Razoumov <slonik.az@gmail.com> wrote:
> 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 ;-)
> 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" ??
Well, why not just do require("debug") then? "Moral" considerations
should be the same.
Alexander.

AltStyle によって変換されたページ (->オリジナル) /