[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: nested properties tolua++ /swig
- From: Peter Kümmel <syntheticpp@...>
- Date: Tue, 26 Sep 2006 19:34:41 +0200
Peter Kümmel wrote:
> Hello,
>
> is it possible with tolua++ or swig to bind nested
> properties like with luabind?
>
> http://www.rasterbar.com/products/luabind/docs.html#properties
>
> -- C:
> struct A {
> int m;
> };
> struct B {
> A a;
> };
>
> -- Lua:
> b = B()
> b.a.m = 1
> print(b.a.m)
Especially, how does it work?
Must I create a new userdata in the
__index function which is then returned?
--
Peter Kümmel