Repeat: Difference between revisions

m
No edit summary
Line 359:
 
=={{header|Gambas}}==
Note: Gambas (3.14.0) cannot performs this task as specified, as it does not have delegates, and pointers do not seem to work with procedures. What does work is using Object.Call, which is intended for executing procedures from external libraries. However the accepting procedure must refer to the object containing the procedure, and refer to the procedure by a String name. In this case, the current module/class reference (Me) is used, but the String name must be passed. This arrangement will only work within the same module/class. It may be possible to pass the parent reference to a method (taking 3 parameters) in another class if the named procedure is Public. The empty array ([]) in Object.Call represent a procedure without parameters, which are not an explicit requirement for this Task, but might another parameter to the accepting procedure.
<lang gambas>
Public Sub Main()
Anonymous user