Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site decwrl.UUCP Path: utzoo!linus!security!genrad!grkermit!masscomp!clyde!ihnp4!houxm!mhuxl!eagle!harpo!seismo!hao!hplabs!hpda!fortune!amd70!decwrl!powell From: powell@decwrl.UUCP Newsgroups: net.lang.c Subject: C typedef names Message-ID: <4635@decwrl.UUCP> Date: Fri, 16-Dec-83 17:03:46 EST Article-I.D.: decwrl.4635 Posted: Fri Dec 16 17:03:46 1983 Date-Received: Wed, 21-Dec-83 01:35:30 EST Sender: powell@decwrl.UUCP Organization: DEC Western Research Lab, Los Altos, CA Lines: 19 From: powell (Mike Powell) On page 206 of Kernighan & Ritchie is an example showing how typedef identifiers may be redefined in nested blocks. The example is: typedef float distance; ... { auto int distance; Jeff Prisner, the guy who's doing our C compiler, tried it out. The 4.1c BSD C compiler calls this an "illegal type combination". The DEC VMS C compiler works according to the book. Is there a consensus on what's right? More generally, is there any "official" addendum to K&R, or is it still the accepted definition. Michael L. Powell Jeff Prisner Western Research Lab Digital Equipment Corporation {decvax,ucbvax}!decwrl!{powell,prisner}