[Issue 9521] Missed with() anti-hijacking

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Nov 26 05:33:24 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=9521



--- Comment #5 from yebblies <yebblies at gmail.com> 2013-11-27 00:33:22 EST ---
(In reply to comment #4)
> (In reply to comment #3)
> > I don't know.  If we change with to count global (and class member) shadowing,
> > we should probably change the normal variable shadowing too.
> 
> There is an ongoing long thread on a very related topic (the thread starts with
> something unrelated):
> http://forum.dlang.org/thread/mydipbvhfjgvjybcyeyn@forum.dlang.org
> 
> There is no consensus regarding what to do. I think shadowing global variables
> with a with() isn't a very good thing. But Andrei seems to not like the idea of
> turning an error the shadowing of locals with module-level variables. So I have
> no final answer yet.

I don't see it happening.  Put it in your dlint list.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list