Re: DirEntries range seems impractical with foreach

2014-03-18 Thread Spacen Jasset
On Tuesday, 18 March 2014 at 08:54:50 UTC, Spacen Jasset wrote: On Monday, 17 March 2014 at 20:39:45 UTC, anonymous wrote: On Monday, 17 March 2014 at 09:18:36 UTC, Spacen Jasset wrote: While trying to use dirEntries range with foreach I encountered a seemingly unsurmountable problem. The probl

Re: DirEntries range seems impractical with foreach

2014-03-18 Thread Spacen Jasset
On Monday, 17 March 2014 at 20:39:45 UTC, anonymous wrote: On Monday, 17 March 2014 at 09:18:36 UTC, Spacen Jasset wrote: While trying to use dirEntries range with foreach I encountered a seemingly unsurmountable problem. The problem is that an execption is thrown while calling .front() on the

Re: DirEntries range seems impractical with foreach

2014-03-17 Thread anonymous
On Monday, 17 March 2014 at 09:18:36 UTC, Spacen Jasset wrote: While trying to use dirEntries range with foreach I encountered a seemingly unsurmountable problem. The problem is that an execption is thrown while calling .front() on the range that dirEntries returnes, which seems to mean it's im

Re: DirEntries range seems impractical with foreach

2014-03-17 Thread Mike Wey
On 03/17/2014 02:54 PM, Ali Çehreli wrote: On 03/17/2014 02:18 AM, Spacen Jasset wrote: While trying to use dirEntries range with foreach I encountered a seemingly unsurmountable problem. The problem is that an execption is thrown while calling .front() There has been past discussions on this.

Re: DirEntries range seems impractical with foreach

2014-03-17 Thread Ali Çehreli
On 03/17/2014 02:18 AM, Spacen Jasset wrote: While trying to use dirEntries range with foreach I encountered a seemingly unsurmountable problem. The problem is that an execption is thrown while calling .front() There has been past discussions on this. What version of dmd are you using? The fol

DirEntries range seems impractical with foreach

2014-03-17 Thread Spacen Jasset
While trying to use dirEntries range with foreach I encountered a seemingly unsurmountable problem. The problem is that an execption is thrown while calling .front() on the range that dirEntries returnes, which seems to mean it's impossible to use it with a for loop if you exepect any sort of '