Dispatch

Sean Cole sean at pidigital.co.uk
Wed Aug 3 11:27:04 EDT 2022


Thanks Craig,
I was particularly asking if there was any 'advantage/disadvantage' in using

dispatch myHandler with myVar

over just using

myHandler

The dictionary defines its advantages for use with behaviours and that it
returns in the 'it' variable if the message was handled or not - useful
even when not used with behaviours in some cases I could imagine.

However, I wondered if anyone else had already done the experimentation as
to the dis/advantages of the above. Just making use of the community :)
Sean

On Wed, 3 Aug 2022 at 15:30, Craig Newman via use-livecode <
use-livecode at lists.runrev.com> wrote:

> Hi.
>
> “Send” and “Dispatch” do much the same thing, but they do differ in how
> they interact with the message patch. They also each include their own
> personal gadgetry that comes in handy in different scenarios. Read about
> both in the dictionary, and do some experimentation with both.
>
> Craig
>
> > On Aug 3, 2022, at 9:36 AM, Sean Cole via use-livecode <
> use-livecode at lists.runrev.com> wrote:
> >
> > Hi all,
> > I've been thinking about the command 'dispatch'. Is there any
> > advantage/disadvantage in using it over just calling your handler?
> > Thanks
> > Sean
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


More information about the use-livecode mailing list