Is it possible to pass the pointer of a procedure as a parameter to another function/procedure so that it can be executed?
I have tried the following code,
it returns only the procedure pointer,
not running it!
How can I run a procedure after obtaining its pointer
Code: Select all
Procedure.s test()
ProcedureReturn "test"
EndProcedure
Procedure run(ptr) ; Assume ptr is the procedure pointer
Debug @ptr ; <----- This return only the pointer value, not executing the pointer
EndProcedure
run(@test())




