in reply to Re^6: use has it's own scope?
in thread use has it's own scope?
Yeah, I see the argument for making it a warning.
Detecting this case is complicated, though. Unlike pseudo-state variables, it's not a shaky part of syntax and composition and implementation. At best, you might be able to express that a lexical variable appears to be used only once, but I can still imagine a bizarre module interface which closes over the using scope's lexical.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^8: use has it's own scope?
by jdporter (Paladin) on Aug 08, 2017 at 18:42 UTC | |
by Eily (Monsignor) on Sep 08, 2017 at 13:41 UTC | |
by LanX (Saint) on Sep 08, 2017 at 14:13 UTC | |
by LanX (Saint) on Sep 06, 2017 at 09:30 UTC |