Thread overview
[Issue 6839] New: documentation for opAssign incorrect
Oct 22, 2011
Sean Silva
Jan 21, 2012
Walter Bright
October 22, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6839

           Summary: documentation for opAssign incorrect
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: websites
        AssignedTo: nobody@puremagic.com
        ReportedBy: chisophugis@gmail.com


--- Comment #0 from Sean Silva <chisophugis@gmail.com> 2011-10-22 10:10:44 PDT ---
The documentation about opAssign seems be incorrect: http://d-programming-language.org/struct.html

It says:

> Struct assignment t=s is defined to be semantically equivalent to:
>   t = S.opAssign(s);

which I think should be `t.opAssign(s)`.

also, just below, the signature is stated as `S* opAssign(S s)`. According to
this post on the newsgroup
<http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.learn&artnum=30203>,
the correct signature should be `void opAssign(ref const S rhs)`.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 21, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6839



--- Comment #1 from github-bugzilla@puremagic.com 2012-01-21 00:29:37 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/3628a19b1cd26e43ba2a7fa4a64673f7c2d97fd9 fix Issue 6839 - documentation for opAssign incorrect

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 21, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6839


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |spec
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


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