On the subject of properties, and possibility of having them in the library
Simen Kjaeraas
simen.kjaras at gmail.com
Sat Jan 26 15:23:00 PST 2013
On 2013-23-26 20:01, Timon Gehr <timon.gehr at gmx.ch> wrote:
> 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
And how might that work?
--
Simen
More information about the Digitalmars-d
mailing list