|
 |
Darren New wrote:
> Yes it does. I didn't say it was bad. I just said I never found the need
> to use one. The existent mechanisms were already sufficient.
Altho your point of a public class with an embedded iterator is a good one.
I even expect C# uses embedded classes to implement that in the libraries,
now that you mention it. Of course, the name isn't exposed outside the class
in any way, so it's hard to tell without reading actual source code.
Instead, there's a call called "getEnumerator" or something on the
collection that returns something that inherits the Enumerator interface or
some such. You don't directly instantiate an iterator, but rather ask the
class for one.
--
Darren New, San Diego CA, USA (PST)
I ordered stamps from Zazzle that read "Place Stamp Here".
Post a reply to this message
|
 |