lua-users home
lua-l archive

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


Does ToLua support operator overloading in any way? I'm trying to do the
following but I'm getting an error saying that there is no support for operator=.

hbVector3D& operator=  (const hbVertex3D& v);
const hbVector3D& operator+= (const hbVector3D& v);

If it isn't currently supported, is it possible to change the code for ToLua to
support it? Has anyone done this? Or is it just not possible given the dsign of
ToLua/Lua? This seems like such an important, usable feature that I'm surprised
it's not supported.

Thanks again
Mike