[Issue 9521] Missed with() anti-hijacking

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Nov 26 05:27:36 PST 2013


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



--- Comment #4 from bearophile_hugs at eml.cc 2013-11-26 05:27:34 PST ---
(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.

-- 
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