in reply to Re: Using "my" suppresses "Name used only once" warning?
in thread Using "my" suppresses "Name used only once" warning?
Well, I'm not really concerned if a variable is truly only used once, but more if it isn't used at all.
Unfortunately, the act of using "my" in declaring a variable ready for use - even without setting a value - is counted as using it, which seems a little odd.
I was hoping to be able to be warned if I'd declared a variable and then not used it for anything. This might happen if I removed a section of code, or declared a lot of variables at once in the early stages of coding, but then decided not to (or just plain forgot to) use one of them later in the development process.
Oh, by the way, it isn't the strict pragma that's causing this - it is my (I tried this without strict, but with my).
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Using "my" suppresses "Name used only once" warning?
by Marza (Vicar) on Feb 03, 2003 at 00:04 UTC | |
by Wysardry (Pilgrim) on Feb 03, 2003 at 00:23 UTC | |
by bart (Canon) on Feb 03, 2003 at 08:13 UTC | |
by Wysardry (Pilgrim) on Feb 03, 2003 at 19:21 UTC | |
by Jenda (Abbot) on Feb 05, 2003 at 15:30 UTC |