in reply to Re^5: Warnings on unused variables?
in thread Warnings on unused variables?
That's the point of resource acquisition/release, sure. Why is it clearer to allow it to silently happen at the closing brace than to explicitly release on the line before the closing brace? The issue isn't whether or not you've used a destructor with a special ability — it's whether you've done so in a way that isn't clear, and thus should trigger a warning.
Also, does a tie matter? Would a tie have caused $foo++ cause warnings::unused to throw a warning?
(I posted this comment earlier, but it seems to have disappeared. Apologies if this makes it show up twice.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Warnings on unused variables?
by Corion (Patriarch) on Sep 27, 2008 at 22:24 UTC | |
by AZed (Monk) on Sep 27, 2008 at 22:38 UTC | |
by Corion (Patriarch) on Sep 27, 2008 at 22:43 UTC | |
by AZed (Monk) on Sep 27, 2008 at 23:31 UTC | |
by Tanktalus (Canon) on Sep 28, 2008 at 02:53 UTC | |
| |
by ikegami (Patriarch) on Sep 28, 2008 at 00:35 UTC | |
| |
by Corion (Patriarch) on Sep 28, 2008 at 08:25 UTC |