On 30-04-2012 09:58, Jacob Carlborg wrote:
On 2012-04-30 04:41, Jonathan M Davis wrote:
Ideally though, there would be zero difference between using a
property and a
public member variable save for taking its address (which should
probably just
be illegal for @property functions). I've been tempted to add an
enhancement
request for putting @property on public member variables to make it so
that
anything which would would break code if it were switched to a property
function wouldn't be legal (such as taking its address).
Unfortunately, right
now that would include stuff like ++.
- Jonathan M Davis
I would rather have @property on instance variables be a syntax sugar
for implementing property functions. Basically virtual instance variables.
Then there better be a way to mark them final too. ;)
--
- Alex