Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!vaxine!wjh12!genrad!mit-eddie!mit-vax!eagle!mhuxi!houxm!ihnp4!ixn5c!inuxc!pur-ee!uiucdcs!uicsl!preece From: preece@uicsl.UUCP Newsgroups: net.lang.c Subject: Re: Orphaned Response - (nf) Message-ID: <2929@uiucdcs.UUCP> Date: Wed, 21-Sep-83 23:50:10 EDT Article-I.D.: uiucdcs.2929 Posted: Wed Sep 21 23:50:10 1983 Date-Received: Fri, 23-Sep-83 23:54:21 EDT Lines: 21 #R:wateng:-27500:uicsl:6400010:000:1049 uicsl!preece Sep 21 08:09:00 1983 Structure comparison can be very useful, but the nature of the comparison is almost always not simple enough to be handled by a built-in capability (except in the one case of testing for absolute equality). I would not want C to acquire abstract types with operations, but that's what you need if you want to have general structure operations. I wouldn't mind having a test for exact match of all named elements of structures included in C and I wouldn't mind having a structure assignment operation that set all named elements equal; both features would sometimes be useful and would involve only modest compiler effort. But I wouldn't say it was a very important gain, since we can write the tests explicitly or write them once and call them as a function. The ability to define exactly what we want comparisons of structures to do (whether we overload the existing relational operators or provide some other mechanism) would be very useful, but it doesn't fit into the texture of C, which is simplicity. scott preece pur-ee!uiucdcs!uicsl!preece