Does D have too many features?
Jacob Carlborg
doob at me.com
Mon Apr 30 00:58:04 PDT 2012
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.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list