Path: utzoo!mnetor!tmsoft!torsqnt!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!spool.mu.edu!snorkelwacker.mit.edu!hsdndev!husc6!ngo From: ngo@tammy.harvard.edu (Tom Ngo) Newsgroups: comp.std.c++ Subject: Responses to ~const 1.6: Alternatives to ~const Message-ID: Date: 19 Feb 91 16:32:32 GMT Sender: news@husc6.harvard.edu Distribution: comp Organization: Harvard Chemistry Department Lines: 31 Background information to this posting was in a very recent summary. Is ~const really needed? I have scoured the replies, looking for alternative ways to accomplish similar objectives without extending the language. The most obvious way to achieve the functionality of ~const is to cast constness away on a case by case basis. The only other alternative was described by Jim Adcock , who brought up the following suggested scheme, mainly to show how absurd it is. Say you want to implement the equivalent of ~const data members. If you want to avoid casting away const, which is implementation- dependent, you have to set up two classes which are