dead handler detector?
bobs at twft.com
Fri Dec 30 19:46:28 CST 2011
Hmmm you know GLX2 has to do something like this, because it knows about every handler in the stack you are working with, because it will turn the command into a link that will go to the handler. If there is no handler, it will not create a link. So the work has already been done for you, you just need to DL GLX2 (which is now open source) from Mark Weider and dig in to find out how Jerry (the original developer) did it. It's dam quick I can tell you!
On Dec 30, 2011, at 5:19 PM, Pete wrote:
> Hi Phil,
> I assume you're trying to find handlers that are not referenced by any
> other handlers? I started on a stack a while back to do the reverse of
> that - cross reference where handlers are called from but it would show you
> which ones are not called from anywhere.
> I'll have to search round for it because I kinda left it alone in favor of
> doing other things but let me know if this is what you're looking for and
> I'll see if I can find it and see what state it's in.
> On Fri, Dec 30, 2011 at 12:29 PM, Phil Davis <revdev at pdslabs.net> wrote:
>> Hi folks -
>> Does anyone have a dead handler detector they would like to share? I
>> looked in RevOnline but didn't find anything.
>> It seems I'm always working on old code that contains handlers that have
>> been superseded by other handlers. I would like an easy way to find those
>> now-unused handlers and remove them.
>> I realize the task of detecting dead handlers is conceptually simple but
>> more complex when it comes to implementation. Still, maybe you have built
>> such a thing that you wouldn't mind sharing.
>> Happy New Year! (Is it too early to say that?)
>> Phil Davis
>> PDS Labs
>> Professional Software Development
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
> Molly's Revenge <http://www.mollysrevenge.com>
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode