Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.
pass functionName
pass messageName
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.
myAverage
onlyOneWindow
As in the HyperTalk examples:
function myAverage theNumbers
function onlyOneWindow
calculateDebt
selectWholeLine
As in:
on calculateDebt
on selectWholeLine theLine, aContainer
Version 0.7b1 (March 24, 2022)