getters and setters not an lvalue

Michael pr at m1xa.com
Wed Oct 31 11:13:33 PDT 2012


> but this gives the following error:
> test.d(4): Error: test.value() is not an lvalue
>
> Is there a rationale behind this decision of not translating
> test.value+=1 to test.value= test.value +1 ?

http://forum.dlang.org/thread/xcbweciovapinaicxgbn@forum.dlang.org

and

http://d.puremagic.com/issues/show_bug.cgi?id=8006




More information about the Digitalmars-d-learn mailing list