[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Bitfield Type Library
- From: "John Hind" <john.hind@...>
- Date: Sun, 22 Sep 2013 11:42:34 +0100
> Date: Sat, 21 Sep 2013 10:55:21 -0300
> From: Hisham <h@hisham.hm>
> Subject: Re: [ANN] Bitfield Type Library
>
> Looking at your code, the most delicate part is your use of luaL_Buffer
> fields (that might need some inescapable #define's). If you spot
> anything else that can be wrapped by compat-5.2 instead, consider
> yourself encouraged to contribute to our compatibility interface.
>
> -- Hisham
You are a diplomat, Hisham. I have delivered myself a sharp slap on the
wrist for that gratuitously sloppy bit of off-API coding, which as you
spotted, would bite me in the butt in Lua 5.1! If I do the job properly in
5.2 then it ought to work in 5.1 too.
For lua_Unsigned I was going to just cast from lua_Integer and accept the
former would have to be limited to one bit shorter than the latter, but I
will use your excellent compat-5.2 instead. One thing I will need to add to
compat-5.2.h:
#define lua_getuservalue lua_getfenv
#define lua_setuservalue lua_setfenv
-- John