opApply not called for foeach(container)
Jonathan M Davis
jmdavisProg at gmx.com
Mon Jul 16 00:54:05 PDT 2012
On Monday, July 16, 2012 09:47:50 David Nadlinger wrote:
> On Monday, 16 July 2012 at 06:27:13 UTC, Mehrdad wrote:
> > On Sunday, 15 July 2012 at 20:01:35 UTC, Jonathan M Davis wrote:
> >> Ideally, we wouldn't even need opApply anymore
> >
> > AFAIT, that's impossible.
> >
> > Not because of D […]
>
> How else woud you implement things like parallel foreach, …?
As I said, _ideally_ we wouldn't need opApply, but ranges fail to be able to
work in every use case that opApply does. As great as ranges are, there _are_
some cases where ranges are insufficient. So, we still have opApply.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list