[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua - C++ Bindings
- From: Daniel Wallin <daniel@...>
- Date: Wed, 21 Jan 2009 22:47:04 +0100
Anders Backman wrote:
>
>
> On Tue, Jan 20, 2009 at 7:07 PM, Ariel Manzur <puntob@gmail.com
> <mailto:puntob@gmail.com>> wrote:
>
> Hi.
>
> On Tue, Jan 20, 2009 at 11:13 AM, Anders Backman <andersb@cs.umu.se
> <mailto:andersb@cs.umu.se>> wrote:
> > - LuaBind
> [...]
> > * Full support of virtual methods
>
> do you know if this is documented? I didn't see anything on their
> manual, but I'd love to see how this kind of thing is implemented.
>
>
> Hm, I guess it was only one way.
> http://www.rasterbar.com/products/luabind/docs.html
FWIW, it's section 10.1:
http://www.rasterbar.com/products/luabind/docs.html#deriving-in-lua
You have to write a thin wrapper class to enable overriding virtual
functions in Lua. Unless you use some kind of code generation, there's
just no other way.
--
Daniel Wallin
BoostPro Computing
http://www.boostpro.com