Handler/Function with same name
David Burgun
dburgun at dsl.pipex.com
Mon Dec 12 15:44:47 EST 2005
>On 12/11/05 12:12 PM, "Mark Smith" <mark at maseurope.net> wrote:
>
>> But I wonder if anyone knows of a good reason why one shouldn't have
>> a function and a handler with the same name?
>
>Confusion, perhaps? Suppose your 'trim' function did some things that your
>'trim' handler didn't... and here it is 6 months later, and you can't
>remember which to use...
Just make the handler call the function, that way they will stay in sync!
>
>Plus, you never know if the engine will be updated later to prevent this
>from happening for some reason...
>
Ok, this is a better reason!
All the Best
Dave
More information about the use-livecode
mailing list