places where sets are useful
Roger Hale
roger at ll-sst
Thu Mar 7 02:37:40 AEST 1985
(From: Brandon Allbery <ncoast!bsa>)
> In a project I'm involved in, I was going to use the following:
>
> #define PLUS |
> #define MINUS &~
> #define IN &
>
> #define ELEM_1 01
> ...
> if (ELEM_1 IN bunch) ...
(Forgive me if I've misquoted slightly)
I find this appealing, in a way. My question for the day:
I can say
bunch PLUS= ELEM_1;
but not
bunch MINUS= ELEM_1;
Is this an argument for an
&~=
assignment operator? :=)
Yours, Roger Hale (roger at ll-sst.arpa)
More information about the Comp.lang.c
mailing list