Coder's Guild Mailing List

Re: Binary Operations

Posted by Josh Letterman on 1999-05-02

>  Hey, what's a problem with logical operations?
>if this is soo hard to you why just not to use bit structures?
>struc flags {
>       unsigned bit7:1;
>       unsigned bit6:1;
>  etc...
>      }
>then just do this:
>flags myflags.bit7=1;


You know, Dmitry, this *is* a much simpler way. Sometimes, after playing
around with assembler so much, you forget about the niceties of C.