"send" vs "dispatch"
Tom Glod
tom at makeshyft.com
Tue Oct 9 01:23:44 EDT 2018
ever since I learned that you can pass a whole array using the send command
the dispatch doesn't seem that much more convenient at all..i do alot of in
time commands so this is very convenient to my needs / style
send "mymessage myarray" to this stack
for years I thought using this form 'myarray' is sent as a string, but it
is actually the whole array and all its data) ..no need to concatenate the
variables.
On Mon, Oct 8, 2018 at 8:54 PM Mark Wieder via use-livecode <
use-livecode at lists.runrev.com> wrote:
> On 10/08/2018 04:41 PM, Bob Sneidar via use-livecode wrote:
>
> Another nice feature of dispatch is that if the handler does not exist
> in the target, it will silently and gracefully fail, continuing to
> execute code after the call.
>
> Yeah, that's a double-edged doohickey, though. I *do* use it that way
> sometimes as well, but note that if you don't check the result then you
> won't know if the dispatch succeeded when you want it to.
>
> Sometimes silently failing is good, sometimes not so much. YMMV.
>
> --
> Mark Wieder
> ahsoftware at gmail.com
>
> _______________________________________________
> 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