in reply to Re: "my" declaration problem
in thread "my" declaration problem
Repeated declarations of the same variable in the same scope make no sense.
In bad style and obfuscated, sure, but is it nonsensical? Redeclaration and reassignment are not the same when destructors or side-effects are involved. I can imagine this kind of situation arising with "templated" code where sections are copy-paste or somesuch. Job security FTW!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: "my" declaration problem
by LanX (Saint) on Apr 25, 2017 at 20:06 UTC | |
by Corion (Patriarch) on Apr 25, 2017 at 20:30 UTC | |
by LanX (Saint) on Apr 25, 2017 at 20:38 UTC | |
by Corion (Patriarch) on Apr 25, 2017 at 20:40 UTC | |
by LanX (Saint) on Apr 25, 2017 at 20:53 UTC | |
|