[Gambas-user] Calling external function by pointer
Bruno Félix Rezende Ribeiro
oitofelix at ...181...
Thu May 8 21:46:59 CEST 2014
Em Thu, 08 May 2014 20:30:13 +0200
Benoît Minisini <gambas at ...1...> escreveu:
> If The Gambas GUI components were just direct calls to the GTK+ or Qt
> API, how many Gambas programmers would have been able to write a GUI
> program? Not a lot I guess.
Yeah, may be.
> But your goal of making a 1 to 1 interface to the XLib library is
> very strange to me:
It's not exactly 1 to 1. In fact and in principle it's a very
Gambas-ish interface, the same way the Gambas' component gb.qt4 is not
a 1 to 1 correspondence to the Qt library.
> nobody uses that library directly anymore, except those who are
> forced to.
That's very true. The danger is to underestimate the significance of
reasons and the number of those who are forced to. In the current state
of affairs, how can I write a window manager in Gambas? How can I
write a new widget tool-set entirely in Gambas?
> I will try my best to fit your needs, but I can't guarantee that, for
> exemple, I will be able to find and implement a syntax to call any
> function pointer knowing the function signature. It's a matter of
> libffi possibilities, available time, and interpreter coherency!
Fair enough.
Thank you.
Happy hacking!
--
,= ,-_-. =. Bruno Félix Rezende Ribeiro (oitofelix) [0x28D618AF]
((_/)o o(\_)) There is no system but GNU;
`-'(. .)`-' GNU Linux-Libre is one of its official kernels;
\_/ All software must be free as in freedom;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20140508/b54e445b/attachment.sig>
More information about the User
mailing list