properties as lvalues
Ivan Senji
ivan.senji_REMOVE_ at _THIS__gmail.com
Sun May 14 16:40:38 PDT 2006
cschueler wrote:
> From the specs:
>
> Note: Properties currently cannot be the lvalue of an op=, ++, or -- operator.
>
It would also be nice if things like this worked:
class A
{
int a { return 3; } //get
int a(int value){} //set
}
void func(ionut int x);
auto z = new A;
func(z.a);
wich would be equivalent to:
auto za = z.a(); //get
func(za);
z.a(za); //set
More information about the Digitalmars-d
mailing list