lua-users home
lua-l archive

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


Just what I was going to say. I've had similarly positive experiences.

Eric

> -----Original Message-----
> From: owner-lua-l@tecgraf.puc-rio.br
> [mailto:owner-lua-l@tecgraf.puc-rio.br]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