opApply not called for foeach(container)
David Nadlinger
see at klickverbot.at
Mon Jul 16 01:58:53 PDT 2012
On Monday, 16 July 2012 at 08:13:49 UTC, Jonathan M Davis wrote:
> On Monday, July 16, 2012 09:47:50 David Nadlinger wrote:
>> On Monday, 16 July 2012 at 06:27:13 UTC, Mehrdad wrote:
>> > 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.
My comment was specifically meant in reply to Mehrdad's »Not
because of D« statement.
David
More information about the Digitalmars-d
mailing list