Should it be a compile time error?

dennis luehring dl.soluz at gmx.net
Wed Jun 19 09:40:55 PDT 2013


> that isn't the problem - D allows assignment to an read property - and
> there is no write property around, so it should be an compiletime error
>
> i should compile only if the missing write property is available - or?
>
> @property int var(int value) { return _var = value; }
>

sorry i've totaly lost seeing the write property :(



More information about the Digitalmars-d-learn mailing list