[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Calling C++ class methods from lua ?
- From: Ville Sulko <Ville.Sulko@...>
- Date: Tue, 20 Jun 2000 09:58:37 +0300
Luiz Henrique de Figueiredo wrote:
> >From: Ville Sulko <firstname.lastname@example.org>
> >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/
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!
org:Tampere Telephone Plc;Data Processing
adr;quoted-printable:;;N=E4silinnankatu 41=0D=0APL 138;Tampere;;33101;Finland