Constant (read-only) member functions #7908
Labels
area-language
Dart language related items (some items might be better tracked at github.com/dart-lang/language).
closed-obsolete
Closed as the reported issue is no longer relevant
P2
A bug or feature request we're likely to work on
type-enhancement
A request for a change that isn't a bug
This issue was originally filed by phlo...@gmail.com
I really like this feature from C++.
MSDN Constant member functions (http://msdn.microsoft.com/en-us/library/6ke686zh(v=vs.80).aspx):
"Declaring a member function with the const keyword specifies that the function is a 'read-only' function that does not modify the object for which it is called."
example C++ code:
class Foo
{
public:
...
void bar() const; // Clear that it doesn't modify object
void baz(); // Unclear on if it modifies the object
...
};
I would like to see some Dart equivalent.
The text was updated successfully, but these errors were encountered: