foreach with classes like associative array?

bearophile bearophileHUGS at lycos.com
Fri Jan 20 17:08:11 PST 2012


Matt Soucy:

> I don't see any sort of opApply or similar to do this, and the foreach 
> section of dlang.org doesn't help. Is there a way to do it?

opApply sounds like the solution for your problem, if you don't need to define a Range. You are allowed to define two or more opApply with different type/number of arguments.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list