[Mono-list] Array.GetEnumerator()

Martin Baulig martin@gnome.org
08 Mar 2002 18:39:33 +0100

"Nick Drochak" <ndrochak@gol.com> writes:

> Here's my patch to implement Array.GetEnumerator() for single rank
> arrays.
> I think that multi-dimensional arrays are different enough to warrant a
> separate internal enumerator class.  Besides, it was pretty simple
> without worrying about multiple dimensions and I'm sleepy :)
> I'll write some tests for this tomorrow, but wanted to get some feedback
> sooner rather than later.

Rather than having two different implementations for one- and multi-
dimensional arrays, I'd prefer having one implementation for both.

So I think we should write the multi-dimensional implementation first and
then see whether it also works for one-dimensional arrays.

> Notice I had to put in a version count in all the mutators. I hope this
> doesn't mess up anything anyone else is working on.

Huch, what is this good for ?

(I must confess, I haven't looked at the docu yet, so that I don't have any
idea what GetEnumerator is supposed to do ...)

Martin Baulig