Reddit: why aren't people using D?
Rainer Deyke
rainerd at eldwood.com
Fri Jul 24 19:13:46 PDT 2009
Ary Borenszweig wrote:
> Maybe what scares Walter is a whole new syntax for properties. If at
> least you could say which functions are properties and which are not,
> that would be a small change and it'll make it possible for other
> things. Something like:
>
> int property foo(); // getter
> int property foo(int value); // setter
My proposal requires no new keywords and no new syntax:
int getfoo(); // getter
int setfoo(int); // setter
--
Rainer Deyke - rainerd at eldwood.com
More information about the Digitalmars-d
mailing list