On the subject of properties, and possibility of having them in the library

Timon Gehr timon.gehr at gmx.ch
Sat Jan 26 11:23:18 PST 2013


On 01/26/2013 03:41 PM, Simen Kjaeraas wrote:
> While the storm raged, I decided to try implementing properties as
> library types. I encountered a few obstacles, which I will outline here.
>
> First, my intended syntax:
>
>    class A {
>      int _n;
        mixin Property!(
>        () => _n,
>        value => _n = value
>      ) n;
>    }
> ...


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




More information about the Digitalmars-d mailing list