Handler/Function with same name

Ken Ray kray at sonsothunder.com
Sun Dec 11 13:58:36 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...

Plus, you never know if the engine will be updated later to prevent this
from happening for some reason...

Just my 2 cents,

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com




More information about the use-livecode mailing list