[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: Lua and references to C/C++ data...
- From: "Eric Ries" <eries@...>
- Date: Thu, 9 Aug 2001 20:21:52 -0700
Just what I was going to say. I've had similarly positive experiences.
> -----Original Message-----
> From: firstname.lastname@example.org
> [mailto:email@example.com]On Behalf Of Christian Vogler
> Sent: Thursday, August 09, 2001 7:43 PM
> To: Multiple recipients of list
> Subject: Re: Lua and references to C/C++ data...
> The tolua framework supports most of what you want to do. Have you
> considered using it? It might make your life a lot easier. We use it
> for a >50,000-line C++ project and are very happy with it. The only
> really ugly part in our lua bindings is mapping reference-counted C++
> objects to lua's GC mechanism.
> > I could make a new type, which had all of the tag methods of the normal
> > Point type, except for a GC, but then anytime I wanted to typecheck
> > an object to make sure it's what I think it is, I'd have to check the
> > 'non-gc'ed' version, too... there's a lot of room for error in that.
> tolua's framework handles this situation perfectly. Give it a try ...
> - Christian