[comp.lang.c++] Are const functions a part of C++ 2.0?

ngo@tammy.harvard.edu (Tom Ngo) (10/11/90)

[Please do not reply after October 15... this will keep the number of
responses down.]

In g++, you can declare a function "const", e.g.

    const double sin( double x )

if the function examines nothing but its arguments and has no side-effects.
(Such a function can be subject to common-subexpression elimination.)

Is this a part of C++ 2.0?  If not, why not?

Please reply via email to ngo@tammy.harvard.edu.  I will summarize to
the net if that seems worthwhile.  Please do not reply after
October 15-- this is my strategy for limiting the number of responses.

Thanks in advance!

--
  Tom Ngo
  ngo@harvard.harvard.edu
  617/495-1768 lab number, leave message