Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site druxu.UUCP Path: utzoo!linus!decvax!genrad!mit-eddie!mit-vax!eagle!mhuxt!mhuxi!mhuxa!houxm!ihnp4!drux3!druxu!tll From: tll@druxu.UUCP Newsgroups: net.lang.c Subject: Re: Orphaned Response - (nf) Message-ID: <702@druxu.UUCP> Date: Sat, 10-Sep-83 20:20:27 EDT Article-I.D.: druxu.702 Posted: Sat Sep 10 20:20:27 1983 Date-Received: Sun, 11-Sep-83 16:14:29 EDT References: <2764@uiucdcs.UUCP>, <910@pur-phy.UUCP> Organization: AT&T Information Systems, Denver Lines: 23 The order of structure members is NOT arbitrary. The compiler must retain the order you specified. "Within a structure, the objects declared have addresses which increase as their declarations are read left-to-right." (C Reference Manual, p. 196) "Two structures may share a common initial sequence of members; that is, the same member may appear in two different structures if it has the same type in both and if all previous members are the same in both." (C Reference Manual, p. 197) This feature is used by many programs, and I don't think that closing the holes in a structure is worth removing this feature. Since compilers are not supposed to support == on structures, why doesn't a compiler give an error when you try instead of generating buggy code? Tom Laidig AT&T Information Systems Laboratories, Denver