
22 Oct
2009
22 Oct
'09
11:41 p.m.
[ Edward Diener wrote: ] Manipulating a reference property would be done purely through accessing the property. Accessing a reference property returns a T & or a T const & depending on whether the property is const or not. In the case where a T & is returned the reference property is read/write if T itself is not const, since you can manipulate T through the reference, whereas in the case where T const & is returned ( or where T & is returns but T is itself const), the reference property is read only.
Who says that's how properties work? That just happens to be your version of the implementation details. I don't think that's how properties have to work at all. -Sid Sacek.