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!linus!bbncca!keesan
From: keesan@bbncca.ARPA (Morris Keesan)
Newsgroups: net.lang.c
Subject: V7 "short" == "int"
Message-ID: <798@bbncca.ARPA>
Date: Fri, 22-Jun-84 19:26:07 EDT
Article-I.D.: bbncca.798
Posted: Fri Jun 22 19:26:07 1984
Date-Received: Sat, 23-Jun-84 06:39:41 EDT
Organization: Bolt, Beranek and Newman, Cambridge, Ma.
Lines: 13

----------------------
    We recently discovered that "unsigned short" is allowed in the V7 "cc" C
compiler, although not in the V7 C Reference Manual, and investigation showed
that this is because the keyword "short" is made lexically equivalent to "int".
This suggested that "short int", explicitly allowed by the manual, would not
be accepted by the compiler, and experimentation bore this out.  Now comes the
fun part.  The compiler accepts the declaration "long short", which is
equivalent to "long int", or "long".  This is such an amusing quirk that I plan
not to fix it in our version of the compiler.
-- 
					Morris M. Keesan
					{decvax,linus,wjh12,ima}!bbncca!keesan
					keesan @ BBN-UNIX.ARPA