[Issue 1570] Wrong return for address operator
https://issues.dlang.org/show_bug.cgi?id=1570 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|2.005 |D2 --
[Issue 1570] Wrong return for address operator
http://d.puremagic.com/issues/show_bug.cgi?id=1570 --- Comment #10 from github-bugzi...@puremagic.com 2012-01-21 21:08:25 PST --- Commit pushed to https://github.com/D-Programming-Language/d-programming-language.org https://github.com/D-Programming-Language/d-programming-language.org/commit/9d331033cfa109d8b44e687803cfc4f4bfe2 fix Issue 1570 - Wrong return for address operator -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 1570] Wrong return for address operator
http://d.puremagic.com/issues/show_bug.cgi?id=1570 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 1570] Wrong return for address operator
http://d.puremagic.com/issues/show_bug.cgi?id=1570 Stewart Gordon s...@iname.com changed: What|Removed |Added Keywords||accepts-invalid Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added CC||bugzi...@digitalmars.com --- Comment #5 from Stewart Gordon s...@iname.com 2011-06-18 02:59:01 PDT --- (In reply to comment #4) It seems to me that sample code is valid. Because dmd frontend has v.a as DotTypeExp explicitly and keeps its information, a is not a member of v. So the expression is invalid. Unless you can find something in the spec that states otherwise. then resolve overloads of f as A.f. Therefore v.a.f should call A.f is right (but not documented) behavior. - Remove 'accepts-invalid' from keywords. How can a case of the compiler accepting something that the spec doesn't allow be neither accepts-invalid nor a spec issue? --- Comment #6 from Walter Bright bugzi...@digitalmars.com 2011-06-28 12:45:57 PDT --- v.a is supposed to work, and it means look up the name in the scope of the base class a. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 1570] Wrong return for address operator
http://d.puremagic.com/issues/show_bug.cgi?id=1570 --- Comment #7 from Stewart Gordon s...@iname.com 2011-06-28 13:00:09 PDT --- (In reply to comment #6) v.a is supposed to work, and it means look up the name in the scope of the base class a. Nice try. Now supply a link to the relevant bit of the spec. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 1570] Wrong return for address operator
http://d.puremagic.com/issues/show_bug.cgi?id=1570 --- Comment #8 from Walter Bright bugzi...@digitalmars.com 2011-06-28 13:28:55 PDT --- (In reply to comment #7) (In reply to comment #6) v.a is supposed to work, and it means look up the name in the scope of the base class a. Nice try. Now supply a link to the relevant bit of the spec. If it's not in the spec, it needs to be. Wanna do a pull request? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 1570] Wrong return for address operator
http://d.puremagic.com/issues/show_bug.cgi?id=1570 --- Comment #9 from Walter Bright bugzi...@digitalmars.com 2011-06-28 14:15:21 PDT --- Fix for compiler, not spec yet: https://github.com/D-Programming-Language/dmd/commit/2d8f2c76d514e56ccef0f8e77e844f0093c7c4ff https://github.com/D-Programming-Language/dmd/commit/2c491bcd6bdf482a212b8ef28bb73cdfa6b60155 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---