lua-users home
lua-l archive

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


> Luiz Henrique de Figueiredo wrote:
> >Exactly. It's the dummynode problem.
> 
> Except for that one variable.
> 
> .. oops.

Just to clarify: Lua uses several global/static "variables", but all
of them are read only, including dummynode. (So they are not exactly
variables.) The peculiarity of dummynode is that Lua assumes that all
references to this variable have the same address.

(Lua also assumes that KEY_HOOK, in ldblib.c, has a unique address.
I guess the dummynode problem hit much earlier, so nobody got
the oportunity to find this second problem...)

-- Roberto