[Issue 3878] Arguments and attributes with the same name

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 4 14:07:42 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=3878



--- Comment #1 from bearophile_hugs at eml.cc 2010-03-04 14:07:38 PST ---
A comment by Clemens
(http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=106995
) about the second idea:

>As soon as you have an instance variable x and a function parameter x, there will *always* be ambiguity (unless you don't use the parameter). Requiring the use of "this." amounts to disallowing access to the parameter x. Or do you suggest making the distinction based on whether x is used as an lvalue or a rvalue?<

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


More information about the Digitalmars-d-bugs mailing list