Eigenpoll : D wish list : constant member functions
Like in C++ it should be possible to mark member functions as "const" to safe internal data for changes:
class foo {
void set_bar(int new_value) {_value = new_value;}
int get_bar() const {return _value;}
protected:
int _value
};
Report this item for cleanup