Re: [Gambas-user] Calling external function by pointer

2014-05-08 Thread Bruno Félix Rezende Ribeiro
Em Thu, 08 May 2014 20:30:13 +0200 Benoît Minisini 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

Re: [Gambas-user] Calling external function by pointer

2014-05-08 Thread Benoît Minisini
Le 08/05/2014 19:38, Bruno Félix Rezende Ribeiro a écrit : > Em Thu, 8 May 2014 18:41:13 +0200 > Tobias Boege escreveu: > >> I understand if you want to be able to do all the things in pure >> Gambas but for that, new syntaxes must be created and I can't imagine >> how those could fit into the exi

Re: [Gambas-user] Calling external function by pointer

2014-05-08 Thread Jussi Lahtinen
> In my view, while programming components, we should only resort to C(++) > language for > speed, not functionality. I agree. It would be great to enhance Gambas compatibility with external libs. However it might be question of balance. Some features may require a lot of work while they would be

Re: [Gambas-user] Calling external function by pointer

2014-05-08 Thread Bruno Félix Rezende Ribeiro
Em Thu, 8 May 2014 18:41:13 +0200 Tobias Boege escreveu: > I understand if you want to be able to do all the things in pure > Gambas but for that, new syntaxes must be created and I can't imagine > how those could fit into the existing Basic language elements... That's the whole point of this.

Re: [Gambas-user] Calling external function by pointer

2014-05-08 Thread Tobias Boege
On Thu, 08 May 2014, Bruno F??lix Rezende Ribeiro wrote: > Em Wed, 07 May 2014 21:36:04 +0200 > Beno??t Minisini escreveu: > > > Le 07/05/2014 20:43, Bruno F??lix Rezende Ribeiro a ??crit : > > > Em Wed, 07 May 2014 19:32:46 +0200 > > > Beno??t Minisini escreveu: > > > > > >> I'm afraid this is

Re: [Gambas-user] Calling external function by pointer

2014-05-08 Thread Bruno Félix Rezende Ribeiro
Em Wed, 07 May 2014 21:36:04 +0200 Benoît Minisini escreveu: > Le 07/05/2014 20:43, Bruno Félix Rezende Ribeiro a écrit : > > Em Wed, 07 May 2014 19:32:46 +0200 > > Benoît Minisini escreveu: > > > >> I'm afraid this is not possible, because the FFI library used by > >> Gambas must know the signa

Re: [Gambas-user] Calling external function by pointer

2014-05-07 Thread Bruno Félix Rezende Ribeiro
Em Wed, 07 May 2014 19:32:46 +0200 Benoît Minisini escreveu: > I'm afraid this is not possible, because the FFI library used by > Gambas must know the signature of the function before calling it. What about providing a way to declare the function signature for a pointer variable? -- ,= ,-_-.

Re: [Gambas-user] Calling external function by pointer

2014-05-07 Thread Benoît Minisini
Le 07/05/2014 18:27, Bruno Félix Rezende Ribeiro a écrit : > Hello all! > > Suppose we have an external function pointer inside the Gambas variable > 'pExternFunction' and we want to call the correspondent function > passing the arguments, known at compilation time, 'Arg1' to 'ArgN'. > How can we a

[Gambas-user] Calling external function by pointer

2014-05-07 Thread Bruno Félix Rezende Ribeiro
Hello all! Suppose we have an external function pointer inside the Gambas variable 'pExternFunction' and we want to call the correspondent function passing the arguments, known at compilation time, 'Arg1' to 'ArgN'. How can we accomplish this in Gambas? Thanks in advance. -- ,= ,-_-. =. Bruno