Re: << and >> operators in c#
- From: "Steve Richter" <StephenRichter@xxxxxxxxx>
- Date: 21 Jan 2007 17:31:07 -0800
Ben wrote:
Hi,
I'm trying to figure out the purpose of these operators.
Now, I know what they do. They shift bits either left or right.
But I don't know why would anybody want to do that. I've never seen
anyone using it in his/her code.
Any ideas?
it is a tragic mistake that an operator that is tailor made for piping
and adding to lists, is reserved instead for such a trivial, seldom
used operation. If you want to shift bits, better to have a new literal
operator:
bunchOfBits shiftleft 2 ;
-Steve
.
- Follow-Ups:
- Re: << and >> operators in c#
- From: Stephany Young
- Re: << and >> operators in c#
- Prev by Date: Should the Dispose( ) method only run when there are no other references to an object?
- Next by Date: Re: Should the Dispose( ) method only run when there are no other references to an object?
- Previous by thread: Re: << and >> operators in c#
- Next by thread: Re: << and >> operators in c#
- Index(es):
Relevant Pages
|