lua-users home
lua-l archive

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


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