Which programming languages support constant methods?

Posted by Derek Mahar on Stack Overflow See other posts from Stack Overflow or by Derek Mahar
Published on 2010-03-23T17:39:34Z Indexed on 2010/03/23 17:53 UTC
Read the original article Hit count: 310

Filed under:
|

Which programming languages other than C++ support the concept of a constant class method? That is, what languages allow the programmer to constrain a method in such a way that it is guaranteed not to change the state of an object to which the method is applied?

Please provide examples or references in your answer.

© Stack Overflow or respective owner

Related posts about programming-languages

Related posts about c++