[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Question about structs and tolua 5
- From: Ignacio Burgueño <ignacio@...>
- Date: Wed, 7 Jan 2004 15:50:34 -0300
Yes. That, and the union thing you mention would be nice things to have in
tolua. Some time ago there was a poll about which features tolua users would
like to have. I hope this features will be included in future tolua
releases. And, if I may add one, I'd like tolua to have some sort of token
in the pkg file so you can have fields in a structure or class defined, but
allowing the get / set methods to be implemented by the user.
I mean, in cases such as:
typedef struct {
char RTPAddress[MAX_ADDRESS_LEN];
...
}
the get / set functions generated won't compile, so it would be nice to have
the RTPAddress field added to the tolua type, but letting the user write its
own get / set methods.
Greetings
Ignacio Burgueño
----- Original Message -----
From: "Vbr. Andre Kloss" <kloss@mail.automatix.de>
To: <lua@bazar2.conectiva.com.br>
Sent: Wednesday, January 07, 2004 3:02 PM
Subject: Re: Question about structs and tolua 5
> Hi there,
>
> why not add a switch to tolua that will provide con-struct-ors, even
> without a "fake" constructor in the pkg? Or some token in the pkg that
> sets the option? This will make stuff for the C folks easier and not
> disrupt anyone else's work.
>
> By the way, I have still gripes about missing handling for C union
> types. It is causing Event handling in luaSDL to be very debug
> intensive for me. Which is sad, because luaSDL lets me throw together a
> small game in an afternoon (including gfx). Definetly cool.
>
> And while we are at unrelated questions: How complicated is it to put an
> iterator function into user data, letting you look into the structures at
> debug time? This would greatly benefit debugging. And the _RELEASE
> switch is already there...
>
> Do these questions belong in the wish list? ;)
>
> Regards,
> Andre
> --
> Tolerance rulez, everything else sux! -- Andre Kloss
>
> ----- End forwarded message -----
>
> --
> Tolerance rulez, everything else sux! -- Andre Kloss