Defining an UNKNOWN Method

When an object that receives a message has no matching message name, REXX checks if the object has a method named UNKNOWN. If it does, REXX calls UNKNOWN, passing two arguments. The first is the name of the method that was not located. The second is an array containing the arguments passed with the original message.

To define an UNKNOWN message, specify:

UNKNOWN(message_name,message_args)


[Back: Public versus Private Methods]
[Next: Concurrency]