Re: foreach_reverse and lockstep.

2016-04-01 Thread Simen Kjaeraas via Digitalmars-d
On Friday, 1 April 2016 at 17:44:40 UTC, ZombineDev wrote: On Friday, 1 April 2016 at 16:10:01 UTC, Simen Kjaeraas wrote: On Friday, 1 April 2016 at 14:37:36 UTC, Jonathan M Davis wrote: (you'd need some sort of opApplyReverse function to go with foreach_reverse, and no such thing exists). Ac

Re: foreach_reverse and lockstep.

2016-04-01 Thread ZombineDev via Digitalmars-d
On Friday, 1 April 2016 at 17:44:40 UTC, ZombineDev wrote: On Friday, 1 April 2016 at 16:10:01 UTC, Simen Kjaeraas wrote: On Friday, 1 April 2016 at 14:37:36 UTC, Jonathan M Davis wrote: (you'd need some sort of opApplyReverse function to go with foreach_reverse, and no such thing exists). Ac

Re: foreach_reverse and lockstep.

2016-04-01 Thread ZombineDev via Digitalmars-d
On Friday, 1 April 2016 at 16:10:01 UTC, Simen Kjaeraas wrote: On Friday, 1 April 2016 at 14:37:36 UTC, Jonathan M Davis wrote: (you'd need some sort of opApplyReverse function to go with foreach_reverse, and no such thing exists). Actually, it exists and it works. It's just not implemented fo

Re: foreach_reverse and lockstep.

2016-04-01 Thread Simen Kjaeraas via Digitalmars-d
On Friday, 1 April 2016 at 14:37:36 UTC, Jonathan M Davis wrote: (you'd need some sort of opApplyReverse function to go with foreach_reverse, and no such thing exists). Actually, it exists and it works. It's just not implemented for lockstep. I'm trying to clean up my Phobos repo so I can make

Re: foreach_reverse and lockstep.

2016-04-01 Thread Jonathan M Davis via Digitalmars-d
On Thursday, March 31, 2016 03:12:34 Sean Campbell via Digitalmars-d wrote: > Why doesn't reverse iteration of lockstep work? It does for zip. > Is this intended or is it a bug? Glancing over the code quickly, it looks like lockstep doesn't actually generate a range but an object that defines opAp

Re: foreach_reverse and lockstep.

2016-03-31 Thread Jack Stouffer via Digitalmars-d
On Thursday, 31 March 2016 at 03:12:34 UTC, Sean Campbell wrote: Why doesn't reverse iteration of lockstep work? It does for zip. Is this intended or is it a bug? Please file an enhancement request at issues.dlang.org

Re: foreach_reverse and lockstep.

2016-03-31 Thread ZombineDev via Digitalmars-d
On Thursday, 31 March 2016 at 03:12:34 UTC, Sean Campbell wrote: Why doesn't reverse iteration of lockstep work? It does for zip. Is this intended or is it a bug? Lockstep is actually not a range. It overloads the opApply[1] operator to support foreach. To support foreach_reverse, it would al

foreach_reverse and lockstep.

2016-03-30 Thread Sean Campbell via Digitalmars-d
Why doesn't reverse iteration of lockstep work? It does for zip. Is this intended or is it a bug?