What speed advantage comes from a private handler?
monte at appisle.net
Tue Nov 8 20:53:04 EST 2016
> On 9 Nov. 2016, at 12:44 pm, Phil Davis <revdev at pdslabs.net> wrote:
> function app_helperAppPath pAppName
> dispatch function ( "_helperAppPath_" & the platform ) to me with pAppName
> return the result
> end app_helperAppPath
> function _helperAppPath_MacOS pAppName
> -- Mac-specific app path discovery code
> end _helperAppPath_MacOS
> function _helperAppPath_Win32 pAppName
> -- Windows-specific app path discovery code
> end _helperAppPath_Win32
Hmm… I guess that is a use case where support for private handlers in dispatch would be helpful. I’d probably need to see an example that could be so easily refactored away with a control structure to be sure on that though.
More information about the Use-livecode