> On 9 Nov. 2016, at 12:44 pm, Phil Davis <[email protected]> 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.
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to