Reddit: why aren't people using D?

bearophile bearophileHUGS at lycos.com
Mon Jul 27 12:30:17 PDT 2009


Steven Schveighoffer:
> property
> {
>     int x() {}
>     void x(int n) {}
>     bool empty() {}
> }

An alternative:

property(x) {
    ... // or getter and/or setter
}

Bye,
bearophile



More information about the Digitalmars-d mailing list