From: Gavin Sinclair Date: 2002-10-03T14:53:16+09:00 Subject: Re: Can soneone tell me what I'm doing wrong... From: "Matt Gushee" > > >>> > If you ever used C++, then you would have known the issue of deleting an > > >>> > element while you are traversing the container using an iterator. > > Well, that's simple enough. I was expecting something more esoteric. So > does this mean that at the implementation level there's really no > difference between > > stuff.each > > and > > for (int i = 0; i < stuff.length(); i++) { > > ? > > -- > Matt Gushee For an array, perhaps, but it's not true for a generic iterator. Not everything that supports :each also supports :length. Or :[] for that matter. Gavin