H
Herfried K. Wagner [MVP]
Cor Ligthert said:It runs, you did obvious not try it, it gives as result
0 first
1 first
2 second
3 second
Yeah, but it has nothing to do with iterators ;-).
Cor Ligthert said:It runs, you did obvious not try it, it gives as result
0 first
1 first
2 second
3 second
Cor said:Frans,
Have a nice day, maybe it is better that you walk to the end of the
'pier' take a deep breath and ask yourself: "Is this the tone I have
to write in a newsgroup".
Cor said:It runs, you did obvious not try it, it gives as result
0 first
1 first
2 second
3 second
Did I say that, I don't like the static keyword. It is to much
hidden. That is one of the things that Jon Skeet and I very much
agree about.
Frans is completely right in this regard. I asked you about yield, you are
telling me about static/shared -
Sahil Malik said:E-X-A-C-T-L-Y MY POINT
Upcoming ADO.NET 2.0 book - http://tinyurl.com/9bync
What the heck - I can't find it. A bit shocked to see it missing though.
or any equivalent of it" ?
Cor Ligthert said:I only tried to give Sahil an alternative for his 'yield'.
The static is the one that comes in my idea the most near at it.
And than I got reply that was in my opinion about a shared class and his
members.
I am quiet sure that the yield is not exactly the same as a VB static,
otherwise I had given an example with a foreach.
Although in my idea is it not imposible that it will act internal not much
less than a VB static variable. You cannot keep values in memory and in
the same time let them go out of scope.
Cor Ligthert said:or any equivalent of it" ?
Frans Bouma said:I just wanted to explain that code like you wrote is hard to read,
thus not what you want. This was mainly caused by the static keyword.
I.o.w.: static is IMHO a keyword you should better avoid (like goto),
Cor Ligthert said:Maybe it is wise that you buy this book before you go on in that one that
you are endless telling in these newsgroup that you are writting now.
http://www.nbcindia.com/Descriptions.asp?title_id=2545
As you know I try forever, however sometimes I get angry when the mud is toCor, try to keep it outside the groups.
I am not mistaking in this. In my opinion have I nowhere written what you"A real man can admit when he makes a mistake."
I have the idea, if Frans tell that I am not than I will agree.Doe maar gewoon, dan doe je al gek genoeg"
Herfried said:I disagree. There are certain cases where 'Static' makes perfect
sense and additionally leads to better-encapsulated code than using a
private (shared) field. Note that this should not encourage the use
of 'Static' where it doesn't make much sense ;-).