C/C++
enum.txt
Associated article: Collection Enumeration: Loops, Iterators, & Nested Functions
Tags: C/C++
Published source code accompanying the article by Walter Bright and Matthew Wilson in which they describe how the D language implements its collection enumeration via a foreach statement.
Enumeration & Programming Languages
by Walter Bright and Matthew Wilson
Listing One
T ar[]; // Declare the array
for(int i = 0; i < ar.length; ++i)
{
ar[i]; // Do something with the array element
}
Listing Two
T ar[100]; // Declare the array
...


