Delphi 2007 Handbook




Essential Pascal








November 8, 2007

Handbook Note 36/113: Nested Classes for Iterators

Note 36 of 113 of Delphi 2007 Handbook

Note 36 (page 88): Later in this chapter there is a practical example in which nested classes come in handy, namely implementing a custom iterator for a for..in loop.

Too bad the VCL introduces specific global classes for the iterators, rather than using private nested classes, as it is possible to do. I actually mentioned this already in another blog post, last month. This blog post is part of my "113 Delphi 2007 Handbook Notes" blogging project, to promote my new Delphi book.





 

0 Comments


Post Your Comment

Click here for posting your feedback to this blog.

There are currently 0 pending (unapproved) messages.