Re: Generic range to read array or a file as a phobos range

2013-03-18 Thread Andrea Fontana
UTC, bioinfornatics wrote: On Friday, 15 March 2013 at 14:40:17 UTC, Andrea Fontana wrote: 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

Re: Generic range to read array or a file as a phobos range

2013-03-17 Thread bioinfornatics
UTC, Andrea Fontana wrote: 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

Re: Generic range to read array or a file as a phobos range

2013-03-17 Thread Andrea Fontana
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

Re: Generic range to read array or a file as a phobos range

2013-03-17 Thread bioinfornatics
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

Re: Generic range to read array or a file as a phobos range

2013-03-15 Thread Andrea Fontana
On Friday, 15 March 2013 at 16:11:38 UTC, bioinfornatics wrote: On Friday, 15 March 2013 at 14:40:17 UTC, Andrea Fontana wrote: 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

Re: Generic range to read array or a file as a phobos range

2013-03-15 Thread bioinfornatics
On Friday, 15 March 2013 at 14:40:17 UTC, Andrea Fontana wrote: 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

Re: Generic range to read array or a file as a phobos range

2013-03-15 Thread Andrea Fontana
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