A message path question

Richard Gaskin ambassador at fourthworld.com
Sat Jan 24 11:44:48 EST 2004


Doug Lerner wrote:

> I have a stack and a substack
> 
> Stack A (contains a preOpenStack)
> Stack B (contains a preOpenStack)
> 
> I have a "pass preOpenStack" as the last line of my preOpenStack handlers.
> 
> It seems that when I open Stack B that *both* of the preOpenStack handlers
> run - the one for Stack B and then the one for Stack A.
> 
> Is that because I have the "pass" statement in there?
> 
> It seems like I should remove the pass statement. Any idea why the docs in
> their examples include it? It seems like it would only be useful if you also
> wanted the main stack's preOpenStack handler to run. Isn't that right?

It's often considered good practice to be in the habit of passing system
messages, so if you want to modify behavior later you can add a handler
farther down the message path without having to go back and revise each
script.

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 ___________________________________________________________
 Ambassador at FourthWorld.com       http://www.FourthWorld.com



More information about the use-livecode mailing list