Re: Dispatch Versus Send

2010-03-05 Thread Trevor DeVore
On Mar 4, 2010, at 4:42 PM, Gregory Lypny wrote: What's the difference between the two other than Dispatch using the normal message path? One other point - as of Rev 4.0 you can dispatch functions as well. dispatch function GetValue to button 2 with theParam -- Trevor DeVore Blue Mango

Re: Dispatch Versus Send

2010-03-05 Thread Richard Gaskin
Trevor DeVore wrote: One other point - as of Rev 4.0 you can dispatch functions as well. dispatch function GetValue to button 2 with theParam Way cool! Thanks for posting that; I'd missed that in the docs. For all of its advantages, I've taken on Mark Wieder's approach since dispatch was

Re: Dispatch Versus Send

2010-03-05 Thread Timothy Bleiler
Another point about Dispatch that's not documented is that you can use call by reference variables with it. On Mar 5, 2010, at 8:09 AM, Trevor DeVore wrote: On Mar 4, 2010, at 4:42 PM, Gregory Lypny wrote: What's the difference between the two other than Dispatch using the normal message

Re: Dispatch Versus Send

2010-03-05 Thread Mark Wieder
Richard- Friday, March 5, 2010, 5:57:57 AM, you wrote: Trevor DeVore wrote: One other point - as of Rev 4.0 you can dispatch functions as well. dispatch function GetValue to button 2 with theParam Way cool! Thanks for posting that; I'd missed that in the docs. It's not in the docs and

Dispatch Versus Send

2010-03-04 Thread Gregory Lypny
Hello everyone, What's the difference between the two other than Dispatch using the normal message path? Regards, Gregory ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and

Re: Dispatch Versus Send

2010-03-04 Thread Trevor DeVore
On Mar 4, 2010, at 4:42 PM, Gregory Lypny wrote: Hello everyone, What's the difference between the two other than Dispatch using the normal message path? * No error thrown if message you dispatch isn't caught along the way. * Dispatch tells you whether or not the message was handled,

Re: Dispatch Versus Send

2010-03-04 Thread zryip theSlug
2010/3/4 Gregory Lypny gregory.ly...@videotron.ca: Hello everyone, What's the difference between the two other than Dispatch using the normal message path? Hello Gregory, The disptach definition from the Rev dictionary: The dispatch command is most useful when using behaviors, as it allows

Re: Dispatch Versus Send

2010-03-04 Thread zryip theSlug
2010/3/4 Trevor DeVore li...@mangomultimedia.com: On Mar 4, 2010, at 4:42 PM, Gregory Lypny wrote: Hello everyone, What's the difference between the two other than Dispatch using the normal message path? * No error thrown if message you dispatch isn't caught along the way. * Dispatch

RE: Dispatch Versus Send

2010-03-04 Thread Jim Bufalini
Gregory Lypny wrote: What's the difference between the two other than Dispatch using the normal message path? I think one of the more significant considerations when deciding to use dispatch or send in time is the last point Trevor made, which is dispatch is more like executing a command or

Re: Dispatch Versus Send

2010-03-04 Thread Richard Gaskin
Gregory Lypny wrote: What's the difference between the two other than Dispatch using the normal message path? FWIW, where they can be used interchangeably dispatch is about 20% faster. Of course it's not like you'll be using them for all your messages, but if you have a situation where speed

Re: Dispatch Versus Send

2010-03-04 Thread Jeff Massung
Anyone want to now comment on dispatch vs. call? ;-) Jeff M. On Thu, Mar 4, 2010 at 4:37 PM, Richard Gaskin ambassa...@fourthworld.comwrote: Gregory Lypny wrote: What's the difference between the two other than Dispatch using the normal message path? FWIW, where they can be used

Re: Dispatch Versus Send

2010-03-04 Thread Mark Wieder
Richard- Thursday, March 4, 2010, 2:37:47 PM, you wrote: FWIW, where they can be used interchangeably dispatch is about 20% faster. Have you benchmarked that? Empirically that's what I'm seeing as well, but I've never actually timed it, so it's subjective here. -- -Mark Wieder

RE: Dispatch Versus Send

2010-03-04 Thread Jim Bufalini
Mark Wieder wrote: Richard- Thursday, March 4, 2010, 2:37:47 PM, you wrote: FWIW, where they can be used interchangeably dispatch is about 20% faster. Have you benchmarked that? Empirically that's what I'm seeing as well, but I've never actually timed it, so it's subjective here.

Re: Dispatch Versus Send

2010-03-04 Thread Richard Gaskin
Mark Wieder wrote: Richard- Thursday, March 4, 2010, 2:37:47 PM, you wrote: FWIW, where they can be used interchangeably dispatch is about 20% faster. Have you benchmarked that? You have to ask? :) Here's a script I tested with back in September when I had to make some architectural

Re: Dispatch Versus Send

2010-03-04 Thread Mark Wieder
Richard- I've resorted lately to using dispatch as a better send for cases where I don't need an in time message. It somehow just seems more robust, even when you don't consider the speed increase. -- -Mark Wieder mwie...@ahsoftware.net ___