1. Computing

Understanding and Writing Custom Enumerators and Iterators in Delphi

By March 27, 2012

Follow me on:

in OOP :: The "for in" loop makes it easier to loop through the elements in a collection (e.g. characters in a string or objects in a TObjectList) by removing the need for the iterator variable, indexing each element and checking for boundaries.

Interested in creating custom enumerators for your own collection classes?

Read the full article to learn how to Create Custom For-In Iterations

Related:

Comments
Comments are closed for this post.
Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

©2014 About.com. All rights reserved.