lua-users home
lua-l archive

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


Luiz Henrique de Figueiredo wrote:
> >From: Ville Sulko <vms@dubbi.atk.tpo.fi>
> >what would be the best method for accessing C++ objects'
> >methods from the lua code? Do I have to pass the objects this-pointer
> >to the lua code as userdata and then write static wrappers in the C++
> >class which take the userdata as an argument and then call the
> >method of the given object (with parsed as given)?
> 
> tolua does this for you. see http://www.tecgraf.puc-rio.br/~celes/tolua/
> --lhf

Having studied tolua for a couple of days, it has certainly given
me some ideas how to implement C++-interaction with lua. Unfortunately
noone has ported tolua to the upcoming lua version 4, which I need in
my project. Anyone working on that? Right now I don't have the time
to do the port, I'm pretty tied up with other projects...

Anyway, tolua has been of great help when doing the interfaces, thanks!

-Ville
begin:vcard 
n:Sulko;Ville
tel;cell:+358-50-5475753
tel;fax:+358-3-2244519
tel;work:+358-3-2244511
x-mozilla-html:FALSE
org:Tampere Telephone Plc;Data Processing
version:2.1
email;internet:Ville.Sulko@tpo.fi
adr;quoted-printable:;;N=E4silinnankatu 41=0D=0APL 138;Tampere;;33101;Finland
x-mozilla-cpt:;0
fn:Ville Sulko
end:vcard