Note: This is a work in progress and many formatting issues have been fixed. Read more about the project on the home page.
The pass
keyword ends execution of the current handler and sends the entire message that initiated execution of the handler to the next object in the message-passing order.
(Ordinarily, once a message is handled, it does not continue along the message- passing order.)
In general, a stack should pass any system messages that it handles so that other stacks later in the message-passing order also get a chance to handle the message.
For example, a mouseWithin
handler in your Home stack won't ever run if you also have a mouseWithin
handler without a pass
statement in a stack before Home in the message-passing path.
Any text string, without quotation marks, that represents the name of the function handler you want to write:
As in the HyperTalk examples:
Any text string, without quotation marks, that represents the name of the message handler you want to write:
As in: