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 <[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