Is the -property compiler flag broken/bad idea?

Martin Primer megaboo at zoo.com
Thu Jun 6 03:38:26 PDT 2013


What would be good is:

@property int foo {
     get() {
         _val = value;
     }
     set() {
         value = _val;
     }
}

usage:

foo = 12;
int bar = foo;


my 2 cents.


More information about the Digitalmars-d-learn mailing list