[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 <[email protected]
> <mailto:[email protected]>> wrote:
>
> Hi.
>
> On Tue, Jan 20, 2009 at 11:13 AM, Anders Backman <[email protected]
> <mailto:[email protected]>> 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