Xref: utzoo comp.lang.c++:10304 comp.std.c++:408 Path: utzoo!attcan!uunet!munnari.oz.au!comp.vuw.ac.nz!actrix!Bruce.Hoult From: Bruce.Hoult@actrix.co.nz (Bruce Hoult) Newsgroups: comp.lang.c++,comp.std.c++ Subject: Re: const is not object-oriented Message-ID: <1990Nov10.184521.2872@actrix.co.nz> Date: 10 Nov 90 18:45:21 GMT References: <1990Nov9.181408.23110@odin.corp.sgi.com> Organization: Actrix Public Access UNIX, Wellington, New Zealand Lines: 6 Comment-To: linton@sgi.com >If you implement this caching strategy, you can no longer make sum >a const member function! I think this is a clear case of the programmer knowing better than the compiler and being justified in using a cast of "this" to IntVector* in sum() at the point at which sum_is_valid is changed.