lua-users home
lua-l archive

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

On Thu, Apr 14, 2005 at 11:42:35PM -0400, R. Frazier wrote:
> Does Tolua++ works with unions, because I can't get this to work:

>         float m[4][4];

this is the problem I think.. you can't have arrays of arrays on tolua++.  
but you could add an external function as a 'method' to that struct to
access the elements of that array (look up 'tolua_outside' on the manual).

> >It does not work for unions (parser error).
> >union A {
> >  struct a x;
> >  ...
> >};
> >
> >fails.

this is a bug I guess.. I'll try to add a fix on the next release.