No.
Edit: no, unless someone writes some extremely hacky C++.
May I request _MEMSUB and _MEMFUNC from Steve and the rest of the qb64 dev team? A _MEM* variant for function pointers within QB64. This will allows us to powerfully interface with all kinds of APIs, callback functions, etc.
Here's the hacky method mentioned by luke:Not quite, that requires the function name to be known as compile time. OP wants to call a function based on a string name known at runtime, which I would imagine looking up symbols in the executable in a fashion similar to loading a dynamically linked library.
https://qb64forum.alephc.xyz/index.php?topic=4602.msg140102#msg140102
Not quite, that requires the function name to be known as compile time. OP wants to call a function based on a string name known at runtime, which I would imagine looking up symbols in the executable in a fashion similar to loading a dynamically linked library.Yes one method shall be a name in a variable, but in alternative an address would be ok too, see topic title and OP: AddressOF(Functionname).
is there a way of using the variable FunctionName$, to call the function that it references?
Isn't this more or less something like what you're wanting?Code: QB64: [Select]
A variable is storing the name of the function, and then we're calling the proper function when that variable is set. Or am I missing something here and the original poster is asking for more than what I'm interpreting from this question?