D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 6402 - Note on @property in spec needs updating
Summary: Note on @property in spec needs updating
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dlang.org (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-29 16:06 UTC by Jonathan M Davis
Modified: 2015-06-09 05:15 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Jonathan M Davis 2011-07-29 16:06:51 UTC
On http://www.d-programming-language.org/property.html, this note is not exactly correct:
 
"Note: Prop­er­ties cur­rently can­not be the lvalue of an op=, ++, or -- op­er­a­tor."

If the properties return ref, then op=, ++, and -- should work. AFAIK, the note is correct for non-ref properties though.