Bug 6839 – documentation for opAssign incorrect

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
Other
OS
Linux
Creation time
2011-10-22T10:10:00Z
Last change time
2012-01-21T00:30:13Z
Keywords
spec
Assigned to
nobody
Creator
chisophugis

Comments

Comment #0 by chisophugis — 2011-10-22T10:10:44Z
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)`.
Comment #1 by github-bugzilla — 2012-01-21T00:29:37Z