[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: object addresses in Lua
- From: Xingzhi Pan <vengeance.storm@...>
- Date: Mon, 30 May 2011 21:27:01 -0700
Thanks I get it. It's the luaB_tostring function in lbaselib.c
calling lua_topointer in lapi.c.
On Fri, May 27, 2011 at 11:25 AM, Florian Weimer <email@example.com> wrote:
> * Xingzhi Pan:
>> Thanks for the reply. So if I'm not supporting userdata (a Lua
>> implementation which doesn't speak to C, nor allow any C extension)
>> and coroutine, is a copying collector doable?
> Built-in tostring() on table returns something derived from the
> address of the table. Even that could be hidden by sacrificing
> another word in the object. Otherwise, I don't think there's anything
> which is observable from the Lua level (especially if you discount the
> debug package).