N
news.microsoft.com
It seems to me that C# has a serious issue regarding const. It's not
possible
to have a method parameter declared as const. Often you will want to call
a method, and you don't want the method to modify the class you are sending
a reference to. Also it's not possible to declare a method as const,
something
you could do in C++.
These const issues are irritating, and in my opinion the language don't live
up
to what we come to expect from a modern language.
Long live C++.
regards
Kjetil Kristoffer Solberg
possible
to have a method parameter declared as const. Often you will want to call
a method, and you don't want the method to modify the class you are sending
a reference to. Also it's not possible to declare a method as const,
something
you could do in C++.
These const issues are irritating, and in my opinion the language don't live
up
to what we come to expect from a modern language.
Long live C++.
regards
Kjetil Kristoffer Solberg