@property - take it behind the woodshed and shoot it?

Jonathan M Davis jmdavisProg at gmx.com
Fri Jan 25 11:17:18 PST 2013


On Friday, January 25, 2013 22:09:18 Dmitry Olshansky wrote:
> 25-Jan-2013 02:32, Adam D. Ruppe пишет:
> > On Thursday, 24 January 2013 at 22:28:04 UTC, Jonathan M Davis wrote:
> >> However, I do think that would be able to mark variables such that
> >> they're treated as rvalues such that swapping a
> >> variable out with a property function dosen't break code
> 
> IMHO this is a critical part of what a property should do -
> transparently swapping fields with some functional accessors.

And for that, we need to keep @property. It's impossible without explicit 
properties (though there are obviously some improvements that we have to make 
in order to make it work properly with @property).

- Jonathan M Davis


More information about the Digitalmars-d mailing list