[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: AW: *****SPAM***** Re: Standard metatable
- From: Sebastian Rohde <rohde@...>
- Date: Tue, 28 Mar 2006 14:39:49 +0200
Thanks ;-) This was the information which pointed me towards triple checking
some legacy code... Which was based on terrible assumptions and which leaded
to a wrong index for lua_getmetatable.
[mailto:email@example.com] Im Auftrag von Julien Cugnière
Gesendet: Dienstag, 28. März 2006 13:46
An: Lua list
Betreff: *****SPAM***** Re: Standard metatable
2006/3/28, Sebastian Rohde <firstname.lastname@example.org>:
> > While working on our lua_State serialization I found that lua tables
> > to have a metatable even if it seems that none has been set by the user
> > by our code. Is that correct?
> > Can this metatable be safely ignored and how can I distinguish this
> > metatable from user defined to ignore it during serialization? (And why
> > did this metatable not have this standard metatable?)
I'm not sure why your tables have a metatable. Here's what I get with
Lua 5.1 final:
Lua 5.1 Copyright (C) 1994-2006 Lua.org, PUC-Rio
So your tables must be getting their metatable from somewhere in your
code... Have you tried looking at the content of those metatables ?