structure problem - error or warning?

Doug Gwyn <gwyn> gwyn at brl-tgr.ARPA
Tue Oct 16 08:14:41 AEST 1984


The reason your compiler gives a nonfatal warning on misuse of
structure members (z.w where w is a member of a different structure
type) is that in the early days of C, this was a supported usage.
Now that stronger typing is creeping into C, it really should be
considered an error (if one WANTS that behavior he can get it by
appropriate use of type-casts).  "Compatibility forever"



More information about the Comp.lang.c mailing list