mentsRe: call_func()

new topic     » goto parent     » topic index » view thread      » older message » newer message
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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu