Newsgroups: comp.lang.c
Path: utzoo!henry
From: henry@zoo.toronto.edu (Henry Spencer)
Subject: Re: ANSI typedef rules
Message-ID: <1991Mar26.170839.29254@zoo.toronto.edu>
Date: Tue, 26 Mar 1991 17:08:39 GMT
References: <793@llnl.LLNL.GOV> <1991Mar16.233150.4078@zoo.toronto.edu> <232@sojurn.UUCP>
Organization: U of Toronto Zoology

In article <232@sojurn.UUCP> rutgers!sci!devon!sojurn!mike (Mike Sangrey) writes:
>"A typedef name shares the same name space as other identifiers declared
>in ordinary declarators..."
>
>Seems to me that 
>
>typedef int stuff;
>stuff stuff;
>
>is fine...

Uh, no, sorry, it's not.  Take a look at that piece of ANSIspeak:  typedefs
are in the same name space as normal identifiers.  Your example is an attempt
to declare the same identifier with two different meanings, which is illegal.
-- 
"[Some people] positively *wish* to     | Henry Spencer @ U of Toronto Zoology
believe ill of the modern world."-R.Peto|  henry@zoo.toronto.edu  utzoo!henry
