lua-users home
lua-l archive

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


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 <fw@deneb.enyo.de> 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).
>
>



-- 
Pan, Xingzhi
http://www.panxingzhi.net