in reply to Re: Need Unused Variable Warning Msgs
in thread Need Unused Variable Warning Msgs

So how does lint do it? Does it solve the halting problem? I think it would be sufficient to determine if a variable as created in a scope with my() or our() and then never mentioned in the scope again. That would be useful enough to be worth the occaisonal false-positive that would result from evals and other nefarious tricks.

-sam

  • Comment on Re: Re: Need Unused Variable Warning Msgs

Replies are listed 'Best First'.
Re: Need Unused Variable Warning Msgs
by Abigail-II (Bishop) on Jun 10, 2002 at 17:38 UTC
    lint doesn't need to solve the halting problem, as C doesn't have any switching between run-time and compile-time.

    Perl does.

    Abigail