How does a command find out who called it?

Ken Corey ken at kencorey.com
Wed Feb 1 16:09:52 EST 2012


On 01/02/2012 21:03, Ken Ray wrote:
> Take away the "in 0 secs" and it should work fine (I get two lines, one referring to the button that issued the 'send' and the other referring to the stack). I'm guessing the "send in time" aspect messes with the executionContexts…
>
> BTW: Why would you send something in 0 secs? Just curious… if you want it to be processed right away, why not just "send" it?
>

If you just do a 'send "blah"' it happens right then before the rest of 
the handler. Whereas if you 'send "blah" in 0 seconds', it only runs 
once this handler is finished.  A minor detail, but a potential biteme.

My library is being called from a script, not from a send, so there's 
definitely plenty of breadcrumbs in the executionContext to find my way 
back.

Thanks guys!

-Ken




More information about the use-livecode mailing list