Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site pucc-h Path: utzoo!linus!philabs!cmcl2!seismo!harvard!talcott!panda!genrad!decvax!bellcore!allegra!ulysses!mhuxr!ihnp4!inuxc!pur-ee!CS-Mordred!Pucc-H:ag4 From: ag4@pucc-h (Angus Greiswald the fourth) Newsgroups: net.lang.c Subject: Re: Set type Message-ID: <1865@pucc-h> Date: Thu, 21-Feb-85 11:23:09 EST Article-I.D.: pucc-h.1865 Posted: Thu Feb 21 11:23:09 1985 Date-Received: Mon, 25-Feb-85 15:22:08 EST References: <10983@watmath.UUCP> <21000020@uiucuxc.UUCP> Organization: your service Lines: 16 > C has a union operator ("|"), an intersection operator ("&"), and even > a set difference operator ("&~"). Of course, this approach limits you > to sets which contain no more elements than are contained in an integer, > but this limitation also tends to apply to PASCAL sets. Well, that doesn't limit you, just like it *doesn't* limit you in Pascal. Use an array of ints. Of course, then the code can get crufty. That's why sets are usually so inefficient in Pascal. They are an interesting idea, though. Can anyone think of a good example where using sets seems to be the best solution? If so, perhaps we could work at coming up with a good set of macros to handle sets right. -- Jeff Lewis vvvvvvvvvvvv {decvax | hao | cbosgd | masscomp | uiucdcs | sequent | ihnp4}!pur-ee!lewie ^^^^^^^^^^^^