Article View: comp.std.c
Article #2450Re: Rationale for allowing const T* = T* wanted.
From: Doug Gwyn
Date: Wed, 20 Feb 1991 00:15
Date: Wed, 20 Feb 1991 00:15
12 lines
1180 bytes
1180 bytes
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.
Technical Details
Message-ID:
<15257@smoke.brl.mil>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!think.com!paperboy!hsdndev!cmcl2!adm!smoke!gwynReferences:
<3913@lupine.NCD.COM> <10034@dog.ee.lbl.gov>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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