Re: best way to enumerate List<> & remove unwanted elements?
- From: Zytan <zytanlithium@xxxxxxxxx>
- Date: 15 May 2007 07:26:49 -0700
You wrote:
"No, you don't decrement (i) like that, you're going to eventually blow up
at that RemoveAt(i)"
That statement is simply false.
Exactly. It's funny how the current argument has absolutely nothing
to do with the initial claim. The initial claim is simply wrong.
Mr. Arnold, you claim that my original code was wrong is simply
false. If you're trying to make a statement other than this, then you
need to be very clear about what you are talking about, and you should
clear up what you meant to say instead of the above. I have come to
the same conclusions as to what you're trying to get at as Peter has,
and your reaction is that he's putting words in your mouth. But, no
one is reading your mind, so all we can go by is your words, and
that's how we are dervied what your argument is. Right now, you're
doing a poor job of explaining what exactly is wrong with my (ugly)
code, so we're struggling to understand where you're coming from,
especially when the code is 100% legitimate and will never blow up.
The only thing I can get from you is that it's Bad News to mess with
the loop iterator within the loop. But, the way loops are implemented
are well defined, so this is ok.
I am completely lost with your position.
Zytan
.
- Follow-Ups:
- Re: best way to enumerate List<> & remove unwanted elements?
- From: Mr. Arnold
- Re: best way to enumerate List<> & remove unwanted elements?
- References:
- best way to enumerate List<> & remove unwanted elements?
- From: Zytan
- Re: best way to enumerate List<> & remove unwanted elements?
- From: Mr. Arnold
- Re: best way to enumerate List<> & remove unwanted elements?
- From: Zytan
- Re: best way to enumerate List<> & remove unwanted elements?
- From: Mr. Arnold
- Re: best way to enumerate List<> & remove unwanted elements?
- From: Peter Duniho
- Re: best way to enumerate List<> & remove unwanted elements?
- From: Mr. Arnold
- Re: best way to enumerate List<> & remove unwanted elements?
- From: Peter Duniho
- Re: best way to enumerate List<> & remove unwanted elements?
- From: Mr. Arnold
- Re: best way to enumerate List<> & remove unwanted elements?
- From: Peter Duniho
- Re: best way to enumerate List<> & remove unwanted elements?
- From: Mr. Arnold
- Re: best way to enumerate List<> & remove unwanted elements?
- From: Peter Duniho
- best way to enumerate List<> & remove unwanted elements?
- Prev by Date: Re: Understanding Abstract Factory Pattern
- Next by Date: Re: Testing for implementation if IComparable<T> regarless of <T>
- Previous by thread: Re: best way to enumerate List<> & remove unwanted elements?
- Next by thread: Re: best way to enumerate List<> & remove unwanted elements?
- Index(es):
Relevant Pages
|