Re: &= for bools?
- From: andy.johnstone@xxxxxxxxxxxxxxxxxx
- Date: Mon, 9 Mar 2009 12:51:04 -0700 (PDT)
On Mar 6, 5:49 pm, Pavel Minaev <int...@xxxxxxxxx> wrote:
Please read the thread to which you're responding before doing that.
As noted by Geoffrey, in C# what you say is wrong - operators & and |
are Boolean and not bitwise when applied to bool operands (and yes,
they can be used with bool).
So your glass is half empty, and mine is half full? If you're only
dealing with one bit (which is what a bool represents), it's a bitwise
AND.
.
- Follow-Ups:
- Re: &= for bools?
- From: Pavel Minaev
- Re: &= for bools?
- References:
- &= for bools?
- From: proxyuser
- Re: &= for bools?
- From: z . sessions
- Re: &= for bools?
- From: Geoffrey Summerhayes
- Re: &= for bools?
- From: proxyuser
- Re: &= for bools?
- From: andy . johnstone
- Re: &= for bools?
- From: Pavel Minaev
- &= for bools?
- Prev by Date: Re: Create object of Interface thru Reflection
- Next by Date: Problem sending e-mail with subject when it contain accent
- Previous by thread: Re: &= for bools?
- Next by thread: Re: &= for bools?
- Index(es):
Relevant Pages
|