Rainer Deyke wrote:
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

This is pretty clean, and in keep with the opXxx approach. Actually how about defining property foo by defining opGet_foo and opSet_foo.

Andrei

Reply via email to