Returning reference to self does not work
Kristoffer Danielsson <[email protected]>
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
Luabind 0.8.1
I can't get this working:
local x = MyClass('test'):trim()
MyClass& MyClass::trim()
{
// Modify this object...
return *this;
}
It seems x is assigned the return value from MyClass('test') instead. Why?
Thanks.
_________________________________________________________________
Vi vet vem du passar ihop med! Klicka här för att få veta!
http://dejting.se.msn.com/channel/index.aspx?trackingid=1002952
------------------------------------------------------------------------------
_______________________________________________
luabind-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luabind-user