Article View: comp.std.c
Article #2138Re: Static function prototypes and definitions
From: Lars Henrik Mathiesen
Date: Fri, 16 Oct 1992 15:40
Date: Fri, 16 Oct 1992 15:40
16 lines
1192 bytes
1192 bytes
lmiller@aero.org (Lawrence H. Miller) writes:
> void f(void){static void g(void);}
> is invalid via 3.5.1 lines 19 and 20.
> [Note, though, that this is under Semantics, while it should
> clearly be under Constraints.]
Nope, that would force all vendors to make their compilers reject it.
As it is now, each vendor can define the effect of declaring a
function at block level with storage class static; if that effect in
many cases turns out to be the same as with the vendor's pre-ANSI
compiler, I shall not be surprised.
Clearly, this would never have come to pass in an ideal world.
Lars Mathiesen (U of Copenhagen CS Dep) <thorinn@diku.dk> (Humour NOT marked)
Technical Details
Message-ID:
<1992Oct16.154025.15753@odin.diku.dk>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!dkuug!dkuug!diku!thorinnReferences:
<bjFLFApU@twinsun.com> <1bi565INNgc1@news.aero.org> <1992Oct15.011402.19588@nntpd.lkg.dec.com> <1bk8usINNjkf@news.aero.org>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!dkuug!dkuug!diku!thorinn From: thorinn@diku.dk (Lars Henrik Mathiesen) Newsgroups: comp.std.c Subject: Re: Static function prototypes and definitions Message-ID: <1992Oct16.154025.15753@odin.diku.dk> Date: 16 Oct 92 15:40:25 GMT References: <bjFLFApU@twinsun.com> <1bi565INNgc1@news.aero.org> <1992Oct15.011402.19588@nntpd.lkg.dec.com> <1bk8usINNjkf@news.aero.org> Sender: thorinn@tyr.diku.dk Organization: Department of Computer Science, U of Copenhagen Lines: 16