Variable function calling.
Monkey Programming Forums/Monkey Programming/Variable function calling.
| ||
Import reflection
Function Main:Int()
GetFunction("Test", []).Invoke([])
Return 0
End
Function Test:Void()
Print "test"
End
Try that. You'll need to know what the argument types are, and pass those in when you invoke it. Alternatively you could get a list of ALL functions and iterate through until you find the one you want (which lets you see all overloads). |







