In method routines one can use the FORWARD keyword instruction to forward the 
message to a different
method. To do so is quite simple and versatile from method routines.

In the context of event attribute routines it is many times necessary to call 
another routine and
supply it all the received arguments, e.g.

    onAction="use arg event, slotDir; call buttonClicked event, slotDir;"

A generic, but rather "unRexxish" (somewhat complicated) way to achieve that in 
a single statement
with ooRexx 5 would be:

    
onAction=".context~package~findRoutine('buttonClicked')~callWith(arg(1,'array'));"

Does anyone have an idea how to make that a simpler, better legible statement?

---rony




_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to