Using arrays with functions taking ranges

Mu invalid_email at address.int
Thu Dec 13 07:43:24 PST 2012


>> 	foreach (i, ref o; output)
>
> But isn't output empty?

Indeed it is, when output is a new array.

Then how can I approach this to work for both cases:
1) output is empty?
2) output is the size of input? (MmFile's)


More information about the Digitalmars-d-learn mailing list