getters and setters not an lvalue

Maxim Fomin maxim at maxim-fomin.ru
Wed Oct 31 09:18:57 PDT 2012


On Wednesday, 31 October 2012 at 12:46:12 UTC, maarten van damme 
wrote:
> Is there a rationale behind this decision of not translating
> test.value+=1 to test.value= test.value +1 ?

Probably there were no such decision at all and you just ran into 
issue which has never worked. BTW properties are syntax construct 
which allows to omit braces when calling functions. You actually 
call value function which doesn't return value by reference.


More information about the Digitalmars-d-learn mailing list