Query about typedef type-checking

Larry Jones scjones at sdrc.UUCP
Fri Sep 16 08:32:20 AEST 1988


In article <74 at cybaswan.UUCP>, iiit-sh at cybaswan.UUCP (Steve Hosgood) writes:
> Put simply, does the upcoming standard intend to enforce (or warn about)
> mixing 'typedef'-ed types even if the fundamental items 'beneath' the typedefs
> are the same?

No, the draft maintains the K&R interpretation that typedef does not create a
new type, merely a different way to specify an existing type.  Warnings are
not considered to be in the scope of a standard - if you'd like one, bother
your compiler vendor enough to convince them to add it.

----
Larry Jones                         UUCP: uunet!sdrc!scjones
SDRC                                      scjones at sdrc.uucp
2000 Eastman Dr.                    BIX:  ltl
Milford, OH  45150                  AT&T: (513) 576-2070
"Save the Quayles" - Mark Russell



More information about the Comp.std.c mailing list