Article View: comp.std.c
Article #1329Re: const arrays in prototypes
From: Doug Gwyn
Date: Wed, 30 May 1990 11:20
Date: Wed, 30 May 1990 11:20
21 lines
1401 bytes
1401 bytes
In article <1752@tkou02.enet.dec.com> diamond@tkou02.enet.dec.com (diamond@tkovoa) writes: >In section 3.7.1, "On entry to the function", argument values and >parameter types are adjusted. So the type is adjusted at run time!!!! Of course this is dealt with at compile time, just as are other implicit type conversions in other contexts. >In section 3.5.4.3, parameter types are not adjusted at all in >prototypes for function declarators!!!! They most certainly are; from 3.5.4.3 Semantics: (For each parameter declared with a function or array type, its type for these comparisons is the one that results from conversion to a pointer type, as in 3.7.1. For each parameter declared with qualified type, its type for these comparisons is the unqualified version of its declared type.) >Therefore three interpretations are now necessary. No interpretations are needed; the intent of the standard is clear.
Technical Details
Message-ID:
<13017@smoke.BRL.MIL>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!umich!samsung!sdd.hp.com!uakari.primate.wisc.edu!aplcen!haven!adm!smoke!gwynReferences:
<1745@tkou02.enet.dec.com> <1373@crabcake> <1752@tkou02.enet.dec.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!umich!samsung!sdd.hp.com!uakari.primate.wisc.edu!aplcen!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.std.c Subject: Re: const arrays in prototypes Message-ID: <13017@smoke.BRL.MIL> Date: 30 May 90 11:20:08 GMT References: <1745@tkou02.enet.dec.com> <1373@crabcake> <1752@tkou02.enet.dec.com> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 21