[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: virtual methods in tolua++
- From: "Matthew Armstrong" <turkeypotpie@...>
- Date: Sat, 27 Jan 2007 11:10:20 -0800
This does work, but not so easily right out of the box.
I can't access my computer at work right now, so I'll post my test code on Monday.
As I remember, to get namespaces to work properly, I had to add a hack to the virtual method hooks file.
Though after all we decided to go with luabind, which can also do virtual methods quite easily. luabind has some great features, but, of course, a few disadvantages too, such as extra compilation time. If you want to call a lua function, or interpret a lua object, from c++ code, then tolua++ won't help you out much there, afaik. You have to interface directly with the stack, which works, but isn't so pretty, or use another library in conjunction with tolua++, such as LuaPlus.
On 1/27/07, Megiddo <megiddo@meg-tech.com> wrote:
Original post: http://lua-users.org/lists/lua-l/2006-10/msg00282.html
Sorry to bring up an old thread, but I'm having this same issue. Does
anyone have any ideas what the problem could be? (Basically the
lua-users wiki page "Implementing Virtual Methods With Toluapp" does not
work as advertised)
This would be extremely helpful, hope there's a way to get it working!
-Brett "Megiddo" Smith