lua-users home
lua-l archive

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


On Mon, Jun 22, 2009 at 9:42 AM, Juris Kalnins<juris@mt.lv> wrote:
>> lua_Integer and lua_Number are parameterised because they represent
>> user's values. The other 'ints' in the API are strongly related to the
>> internal implementation of Lua. To parameterise them would mean to
>> parameterise the entire source code. I think this would be a nightmare.
>
> What about typedefing light useradata?
>
What would be the justification for doing so? lua_touserdata relies on
the fact that full UD and light UD can both be a void*, so if light
UDs are typedeffed to something else, then the function is no longer
valid for light UD.