Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!uwm.edu!linac!att!ucbvax!dog.ee.lbl.gov!elf.ee.lbl.gov!torek From: torek@elf.ee.lbl.gov (Chris Torek) Newsgroups: comp.lang.c Subject: Re: declarations using pointers to functions Keywords: declaration, pointers, functions Message-ID: <11208@dog.ee.lbl.gov> Date: 20 Mar 91 21:58:58 GMT References: <27514@rouge.usl.edu> <1991Mar20.201937.6088@ux1.cso.uiuc.edu> Reply-To: torek@elf.ee.lbl.gov (Chris Torek) Organization: Lawrence Berkeley Laboratory, Berkeley Lines: 26 X-Local-Date: Wed, 20 Mar 91 13:58:58 PST In article <1991Mar20.201937.6088@ux1.cso.uiuc.edu> gordon@osiris.cso.uiuc.edu (John Gordon) writes: > [] as "array of" Actually, since there are only two cases where the brackets may be empty, I would suggest instead reading [N] as "array N of" and [] as "array ? of" and NEVER forget the sizes until The Rule allows you to do so. The size of any array is an important part of the type of that array; it must not be disregarded at whim. (The Rule allows you to discard the size whenever an is used in a value context. The two cases where the brackets may be empty occur when declaring formal parameters to functions, and when declaring `extern' objects. Even then, only the `innermost' set of brackets may be empty, and only if they immediately follow the identifier.) -- In-Real-Life: Chris Torek, Lawrence Berkeley Lab CSE/EE (+1 415 486 5427) Berkeley, CA Domain: torek@ee.lbl.gov