[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Statically linking to Lua from multiple shared libaries
- From: Roberto Ierusalimschy <roberto@...>
- Date: Fri, 21 May 2010 15:08:21 -0300
> 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