A beginner's question of foreach

bearophile bearophileHUGS at lycos.com
Sat Dec 29 06:05:24 PST 2007


Alex:

I think this question is for the D.learn newsgroup.

This may work:
foreach(n, string line; s)
    writeln(line);


> Any idea?

n is of a different type, I think.

Bye,
bearophile



More information about the Digitalmars-d mailing list