Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site bbncca.ARPA Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!ihnp4!bbncca!keesan From: keesan@bbncca.ARPA (Morris Keesan) Newsgroups: net.lang.c Subject: Re: K&R App A, par. 8 & 8.2, on Declarations Message-ID: <840@bbncca.ARPA> Date: Fri, 13-Jul-84 09:56:06 EDT Article-I.D.: bbncca.840 Posted: Fri Jul 13 09:56:06 1984 Date-Received: Sat, 14-Jul-84 01:33:24 EDT References: <185@log-hb.UUCP> Organization: Bolt, Beranek and Newman, Cambridge, Ma. Lines: 12 ----------------------------- The problem is just one more inconsistency in K&R and subsequent versions of the C Reference Manual. Although 18.4 defines data-definition as having everything optional, and 10. implies that both type and storage class may be empty simultaneously, 10.2 says "An external data definition has the form data definition: declaration." and a "declaration" must have at least a type or storage-class specifier. The System V release 1 document has the same inconsistency. I hope the ANSI standard cleans this up. -- Morris M. Keesan {decvax,linus,ihnp4,wivax,wjh12,ima}!bbncca!keesan keesan @ BBN-UNIX.ARPA