[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Suggestion: upvalues to C hook functions
- From: Mike Pall <mikelu-0704@...>
- Date: Thu, 19 Apr 2007 14:41:57 +0200
Luiz Henrique de Figueiredo wrote:
> That was the idea, yes. lua_Debug was meant to be extensible.
Well, I thought so, too. But my experiment to extend it with some
internal fields failed miserably. The struct is allocated by
users of the Lua debug API (e.g. ldblib.c, usually on the stack).
They need to know the exact size, including any internal fields.
Adding fields to lua_Debug will break all modules using the Lua
debug API. Recompilation is required and the effects of not doing
so are rather subtle. I.e. this can't be done in the Lua 5.1.x