[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: C-objects with __gc *and* __index?
- From: Shmuel Zeigerman <shmuz@...>
- Date: Sun, 07 Aug 2005 16:43:31 +0200
Uli Kusterer wrote:
thank you for all the great (and fast!) help. The destructor is now
firing as expected, and I've rewritten the __tostring routine to use
snprintf(). So, now I can finally start to play with this cool language
in a more advanced manner. I'm still impressed how comparatively
smoothly Lua integrates with other code. And now on to adding all those
methods. Wish me luck!
As a small additional note: it's possible to write print( aRoom )
instead of print( tostring( aRoom ) ), since print does the
required conversion internally.