Should "dispatch" be extended for timers?

Thierry Douez th.douez at gmail.com
Fri Aug 29 11:57:18 EDT 2014


>
> One other question regarding send.  You can "dispatch function" - is there
> a way to send a message to a function and get hold of the result (obviously
> without a time specified)?
>
> Pete


A small trick:

   send "want_the_return_value" to me
   put  the result

on want_the_return_value
   return 42
end want_the_return_value

HTH,

Thierry

------------------------------------------------
Thierry Douez - http://sunny-tdz.com
Maker of sunnYperl - sunnYmidi - sunnYmage




More information about the use-livecode mailing list