Main stack and substack order in the message path

Scott Rossi scott at tactilemedia.com
Fri Feb 27 11:49:11 EST 2009


Recently, Jim Bufalini wrote:

> Let's say you have main stack A with a substack that is a lib called ABC and
> you start using ABC on launch. You then launch a completely different main
> stack called X with an identical substack lib called XYZ and then start
> using XYZ on launch of main stack X.
> 
>> From a card of stack A you execute a command or function that is in both
> libs. It executes out of XYZ instead of ABC! The obverse can also be true.
> 
> Wouldn't it be logical that the substack of the main stack of the card would
> be searched in the message path before the substack of another completely
> different main stack? Is this a bug? Is it a known issue? And, anyone have a
> work around? By this I mean, a way to insure that a main stack always uses
> its own substack before the substack of a completely different main stack.
> This is assuming, of course, you have no control over the launch order and I
> don't want change a gazillion statements to calls. ;-)

I could be wrong but I believe that the order of library stack to be used is
determined by the order opened: the scripts of the most recent stack opened
would be used before any others.  I know this is true of frontscripts.

The workaround might be to have stack A call "start using stack ABC" (and
the same with the other stack) to make sure the substack is used first when
necessary.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design





More information about the use-livecode mailing list