Bug 6402 – Note on @property in spec needs updating
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2011-07-29T16:06:00Z
Last change time
2015-06-09T05:15:23Z
Assigned to
nobody
Creator
issues.dlang
Comments
Comment #0 by issues.dlang — 2011-07-29T16:06:51Z
On http://www.d-programming-language.org/property.html, this note is not exactly correct:
"Note: Properties currently cannot be the lvalue of an op=, ++, or -- operator."
If the properties return ref, then op=, ++, and -- should work. AFAIK, the note is correct for non-ref properties though.
Comment #1 by github-bugzilla — 2012-01-20T23:03:24Z