DIP28, on properties, availabel for destruction as well

Timon Gehr timon.gehr at gmx.ch
Wed Mar 13 13:21:27 PDT 2013


On 03/13/2013 04:55 PM, deadalnix wrote:
> ...
>>
>> No, both DIPs specify it exactly. DIP28 is broken in that regard.
>> But DIP28 leaves it up to imagination what it means for an expression
>> to occur in the left-hand side of an assignment.
>
> DIP28 is fixed in that regard. You were right.

(x?setter1:setter2)=y; // ?

(x, setter)=y; // ?

struct S{
     ref int foo(){ ... }
     int foo(int x){ ... }
}
S x;
x.foo+=2; // ?

getter.x=y; // ? (x is a field of typeof(getter))



More information about the Digitalmars-d mailing list