Should "dispatch" be extended for timers?
Richard Gaskin
ambassador at fourthworld.com
Tue Aug 26 22:09:02 EDT 2014
I love "dispatch", and the more I use it the more I find "send" murky.
With "dispatch" params seem more natural to me:
dispatch "somecommand" to tSomeObj with tArg2, tArg2
But with "send" it's less clear how params are handled - here's an
example from the forums today:
send clearVideo LayerAlpha, baseLayer, LayerGraphic, \
LayerAudio to me in 700 milliseconds
Seems like a good guess as to how it should be used, but of course the
compiler complains.
So given that "dispatch" is also faster, why not use it for everything,
extending it with "in" to allow timers:
dispatch "somecommand" to tSomeObj with tArg2, tArg2 in 2 secs
Is there some reason I've overlooked as to why "send" allows timers but
"dispatch" doesn't?
--
Richard Gaskin
Fourth World Systems
Software Design and Development for the Desktop, Mobile, and the Web
____________________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
More information about the use-livecode
mailing list