On Thursday, 11 December 2014 at 20:17:50 UTC, bearophile wrote:
Andrew Klaassen:

The docs for stdio.lines say that it's a struct. stdio.lines works with foreach.

If you want a range use "myfile".File.byLine or "myfile".File.byLineCopy.

Bye,
bearophile

I know that there are other ways that'll work. I was just curious about what appears to be a surprise in the way that foreach interacts with stdio.lines.

Andrew

Reply via email to