Re: ... arguments
- From: Tom Tromey <tromey cygnus com>
- To: Andreas Kostyrka <andreas ag or at>
- Cc: tom gerbil org, gnome-list gnome org
- Subject: Re: ... arguments
- Date: 09 Jun 1998 20:10:02 -0600
>>>>> "Andreas" == Andreas Kostyrka <andreas@ag.or.at> writes:
I don't know if anybody answered this or not.
Andreas> I'm actually wrapping gnomeui at the moment, and in
Andreas> gnome-dialog, and I'm a bit stuck with the ... arguments, for
Andreas> example in gnome_dialog_new():
Andreas> The TOM part is clear:
Andreas> deferred GnomeDialog
Andreas> new (String, ObjectArray) (title, buttons);
Andreas> But how can I build up a vaarg list portably in a wrapping?
Andreas> If not, then how these gnome functions are intended to be
Andreas> used by language wrappings?
The short answer is: you can't.
On some systems you can probably use `libffi' to provide a wrapping.
However, since Gnome is free software, you can probably lobby to get
it changed to be more friendly. For instance, you could have a new
interface added which implements the same functionality in a more
wrapper-friendly way. This will benefit every language binding
implementor.
Does your wrapper use the `.defs' files that are in the gnome-guile
module? That would be my preferred approach, if possible. My reason
is that any improvements to the .defs file would benefit other
implementors.
Tom
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]