rds95@leah.Albany.Edu (Robert Seals) (04/21/89)
Has there been a concensus (like in the proposed standard) as to the scope of a typedef? I looked in k&r2, and there was nothing to indicate it must be local to the file in which it was, uh, typedef'ed, but that is the only logical thing that I could imagine. Eh? rob
chris@mimsy.UUCP (Chris Torek) (04/22/89)
The scope of typedefs is the same as that of any other identifier:
f()
{
typedef int foo;
...
}
/* foo is no longer a typedef */
--
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris