Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wasatch!cs.utexas.edu!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.std.c Subject: Re: struct comparison Message-ID: <2280@auspex.auspex.com> Date: 24 Jul 89 20:02:27 GMT References: <2874@solo3.cs.vu.nl> <1989Jul14.155312.2063@utzoo.uucp> <2266@auspex.auspex.com> <5210@ficc.uu.net> Reply-To: guy@auspex.auspex.com (Guy Harris) Organization: Auspex Systems, Santa Clara Lines: 14 >> notion of structure comparison would really do what I wanted (e.g., the >> question of "do you compare pointer values or do you compare the values >> to which they point), > >You compare pointer values. Which may not always correspond to what you want; i.e., "these two structure values have the same values in all their fields" may not be equivalent to "the objects these structures represent are equal". If, say, experience with Ada indicates that they are frequently equivalent, and that people do use structure comparison heavily, that experience might, with some care, be applicable to C; otherwise, the right thing to do is NOT to put it into the standard, but put it into GCC or some other compiler and see how often it's really used.