Multiple typedefs
Doug Gwyn
gwyn at smoke.BRL.MIL
Tue May 2 15:38:25 AEST 1989
In article <2402 at lethe.UUCP> dave at lethe.UUCP (Dave Collier-Brown) writes:
> Is there a technical reason for the difference in redefinition rules
>for macros -vs- typedefs, ...?
Yes.
Oh, you want to know what it is? Well, consider how the compiler is
going to parse a complex declaration containing several typedefs.
How does it know whether you are defining the same typedef a second
time or are just using it to help typedef something else?
There's no analogous problem with #define, due to its unambiguous
syntax that makes it clear what identifier is being defined.
More information about the Comp.std.c
mailing list