Iterators for D

KlausO oberhofer at users.sf.net
Tue Nov 7 09:22:44 PST 2006


Walter Bright wrote:
> 
> One such case is the usefulness of being able to provide an input 
> iterator to a parsing function, which may itself pass the iterator off 
> to other parsing functions.

Some questions:

Is your data structure a graph or a tree ?

What does your iterator iterating ?

I ask because I currently investigate the visitor pattern to traverse 
graph like data structures (see attached code for an example).

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: visitor.d
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20061107/dd2f6ecc/attachment.ksh>


More information about the Digitalmars-d mailing list