C typedef names
powell at decwrl.UUCP
powell at decwrl.UUCP
Sat Dec 17 08:03:46 AEST 1983
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}
More information about the Comp.lang.c
mailing list