[Issue 3787] clarification: assigment to 'this'

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 22 13:34:52 PST 2012


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


Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com


--- Comment #3 from Walter Bright <bugzilla at digitalmars.com> 2012-01-22 13:34:48 PST ---
Assignment to this and super should not be allowed.

The gtkd code can be fixed by making a 'factory' method to create a new object.
However, this is not a trivial fix, and so having the compiler disallow the
current code should be a long time in coming.

In the meantime, I've updated the spec.

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