Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!think.com!paperboy!hsdndev!cmcl2!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.std.c Subject: Re: Rationale for allowing const T* = T* wanted. Message-ID: <15257@smoke.brl.mil> Date: 20 Feb 91 00:15:06 GMT References: <3913@lupine.NCD.COM> <10034@dog.ee.lbl.gov> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 12 In article <10034@dog.ee.lbl.gov> torek@elf.ee.lbl.gov (Chris Torek) writes: >I believe things would be `better' if the language freely allowed >conversion between `char **' and `const char **' and `char * const *' >and `const char * const *', for instance. I think it is recognized that the special meaning given to "pointer to const" as a function parameter is less than a complete realization of the basic idea. Attempts to extend the semantics past the topmost level of referencing simply didn't come out right, so we compromised on getting the intention right for one level and leaving deeper levels less convenient than one might want. If anyone can fix this for some other standard such as C++, more power to them.