[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 17:46:51 CET 2022


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

Brian G reported a new bug.

Summary
-------

Allow On Gosub and On Goto to use pointer/function array as target

Type             : Request
Priority         : Medium
Gambas version   : Master
Product          : Language


Description
-----------

Would it be possible to allow On Goto and On Gosub to use an array of pointers or array of functions as the target of a gosub or goto?

Public FuncList as function[] = or perhaps Public FuncList as pointer[] = [Func1, Func2 ....]

On Goto FuncList

I guess this is really to request a simple interface allowing vectored or state driven applications a less complicated implementation.

Would be nice, and I wonder how complicated it would be .


System information
------------------

Current master




More information about the Bugtracker mailing list