Pointers to procedure
Posted: Sun Oct 16, 2016 1:09 pm
Is there any way of calling a procedure held in a variable pointer ?
Code: Select all
Procedure a(a.s)
Debug "a: " + a
EndProcedure
Procedure b(a.s)
Debug "b: " + a
EndProcedure
Prototype funcProto(a.s)
funcPointer.funcProto = @a()
funcPointer("Hello")
funcPointer = @b()
funcPointer("Hello")