[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: constructors in tolua++
- From: Peter Kümmel <syntheticpp@...>
- Date: Fri, 06 May 2005 19:42:14 +0200
More on a bug in tolua++.
With above example code there should be two metatables,
one for A and one for B, each with a different __call
entry, but there is only ONE table for both classes!
You can test it with this code, copied into the
tolua_tv_open function:
lua_getglobal (tolua_S, "A"); // tA
lua_getmetatable(tolua_S, -1); // tA mtA
lua_getglobal (tolua_S, "B"); // tA mtA tB
lua_getmetatable(tolua_S, -1); // tA mtA tB mtB
int eq = lua_rawequal(tolua_S, -1, -3);
Peter