docs.derivative.ca/Td_Module
run method:
Can someone please write an example how to pass argument ?
not sure what is tuple named args.
thank you !
Update :
I guess for example :
cut_index = 99
run("print args[0]",cut_index)
docs.derivative.ca/Td_Module
run method:
Can someone please write an example how to pass argument ?
not sure what is tuple named args.
thank you !
Update :
I guess for example :
cut_index = 99
run("print args[0]",cut_index)
The interface is a bit klunky here, and we do expect to make it more robust.
ie: ability to pass arguments and keywords cleanly, separate from the run parameters themselves.
Cheers,
Rob
in a textDAT1 write:
op(‘textDAT2’).run(“hello”, “world”, 2)
in textDAT2 write:
print( args[0], args[1], args[2] )
run textDAT1
it will call textDAT2, passing the arguments, and they will be printed in the textport