[Issue 3787] New: clarification: assigment to 'this'

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 9 08:02:26 PST 2010


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

           Summary: clarification: assigment to 'this'
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: www.digitalmars.com
        AssignedTo: nobody at puremagic.com
        ReportedBy: johannespfau at gmail.com


--- Comment #0 from Johannes Pfau <johannespfau at gmail.com> 2010-02-09 08:02:26 PST ---
Created an attachment (id=564)
Example of assignment to this

Assigning to 'this' is currently not documented anywhere. Still assigning to
this, at least in constructors, works and is used by some code (gtkd, for
example). I think assigning to this should either work in constructors as it
does right now, but it then should be documented, or it should be disallowed.
If it will stay implementation specific, that should still be noted in the
docs.

see also: http://d.puremagic.com/issues/show_bug.cgi?id=780 The assignment of
'this' is allowed

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