Generic range to read array or a file as a phobos range
Andrea Fontana
nospam at example.com
Fri Mar 15 07:40:16 PDT 2013
On Friday, 15 March 2013 at 14:31:43 UTC, bioinfornatics wrote:
> Dear,
>
> By using CTFE I try to get a generic range to read array or a
> file as a phobos range. code hosted here:
> http://dpaste.dzfl.pl/1f2bcf39
>
> that works fine for array but for a File instance .eof seem to
> not return true a right time.
>
> Soemone could say what happen ?
>
> Thanks
Have you tried to cache front() result and read next block on
popFront()?
More information about the Digitalmars-d-learn
mailing list