@property

Satoshi via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Dec 8 08:53:13 PST 2016


Hello,
is there any advantage of marking function as @property??


class Foo {
     void objectValue(Object value) { }
     Object objectValue() { }
}



auto foo = new Foo;

// This works fine without @property attribute
foo.objectValue = null;
auto bar = foo.objectValue;


More information about the Digitalmars-d-learn mailing list