September 05, 2010 [Issue 4819] New: "this" in classes should not an lvalue | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=4819 Summary: "this" in classes should not an lvalue Product: D Version: D1 & D2 Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: jemandy@earthlink.net --- Comment #0 from John Mandeville <jemandy@earthlink.net> 2010-09-05 09:05:44 PDT --- "this" is treated as an lvalue. For classes, it should be an rvalue. In particular, the following absurdity compiles in v1.063 and v.2.047 but should not. class Yikes { int i; this() { this = null; } } void main() { auto y = new Yikes(); } See also discussion at http://www.digitalmars.com/d/archives/digitalmars/D/this_as_lvalue_116836.html -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 29, 2012 [Issue 4819] "this" in classes should not an lvalue | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Mandeville | http://d.puremagic.com/issues/show_bug.cgi?id=4819 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |yebblies@gmail.com Resolution| |DUPLICATE --- Comment #1 from yebblies <yebblies@gmail.com> 2012-01-29 22:44:26 EST --- *** This issue has been marked as a duplicate of issue 780 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation