[Gambas-bugtracker] Bug #2483: Allow On Gosub and On Goto to use pointer/function array as target

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Sat Feb 19 18:17:41 CET 2022


http://gambaswiki.org/bugtracker/edit?object=BUG.2483&from=L21haW4-

Comment #2 by Benoît MINISINI:

On the contrary, Gambas has internally sort of function pointers, that are a special datatype, but they are not fully available by the user at the moment.

If I decide to make the internal function datatype available, you will have a method somewhere to call a "function pointer".

In the meanwhile, you can just use Object.Call() to implement what you want. Functions are identified by their name, they must be public, so it's a bit slow.




More information about the Bugtracker mailing list