Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!lll-winken!lll-lcc!unisoft!hoptoad!hsfmsh!dumbcat!marc
From: marc@dumbcat.UUCP (Marco S Hyman)
Newsgroups: comp.lang.c++
Subject: Re: the use of const
Summary: Good for programmer eficiency
Keywords: const
Message-ID: <109@dumbcat.UUCP>
Date: 23 Sep 89 16:46:41 GMT
References: <740@mit-amt.MEDIA.MIT.EDU>
Reply-To: marc@dumbcat.UUCP (Marco S Hyman)
Organization: MH Software, Hayward, Ca.
Lines: 13

In article <740@mit-amt.MEDIA.MIT.EDU> peter@mit-amt.MEDIA.MIT.EDU (Peter Schroeder) writes:
    Is it desirable from an efficiency point of view to use the const modifier
    wherever applicable?

It's good for programmer efficiency.  Eight months after you've written the
code will you remember which operations modify the state of an object? 
Which parameters are modified on operaiton calls? If const is used in the
class definitmon you won't have to take the time to go digging thru the
code.  IMHO it helps make code reusable with a smaller learning curve.

--marc
-- 
// Marco S. Hyman		{ames,pyramid,sun}!pacbell!dumbcat!marc