lua-users home
lua-l archive

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


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