mentsRe: call_func()
- Posted by andi49 Jan 23, 2016
- 1536 views
DonCole said...
SDPringle said...
Then routine call_func, takes an integer which represents a routine as the first argument and a sequence of all of its arguments you pass to it:
integer y = Routine(4)
becomes
integer r_id = routine_id("Routine") integer y = call_func(r_id, {4})
Thank you SDPringle,
This seems to do the trick.
I wish the docs were clearer on this.
Don Cole
Hi
what's wrong with the manual?
http://openeuphoria.org/docs/std_machine.html#_5813_call_proc
http://openeuphoria.org/docs/std_machine.html#_5805_call_func
Andreas