Sets in C (?) :idea from PASCAL

Robert Claeson robert at pvab.UUCP
Sat Aug 20 05:07:36 AEST 1988


In article <594 at philmds.UUCP>, leo at philmds.UUCP (Leo de Wit) writes:

> In article <8808121452.AA14152 at ucbvax.berkeley.edu> U23405 at UICVM.BITNET writes:

> >In PASCAL, there is a datatype called SET that (obviously) deals with sets.
> >What I would like to know is whether anyone has tried to implement this
> >datatype in C (either by a system header file or by typedefs). Any comments
> >would be helpful. (And I mean *ANY* comments)

> An obvious way to implement this in C could be using an (array of)
> integer(s) and the logical operations &, |, ~, and ^ to perform
> operations on these values.

I recall there was a set datatype for C posted to comp.sources.something
<= 1 1/2 year ago.



More information about the Comp.lang.c mailing list