multiple-item traversal ranges
Steven Schveighoffer
schveiguy at yahoo.com
Wed Mar 30 11:11:25 PDT 2011
On Wed, 30 Mar 2011 14:03:39 -0400, Andrej Mitrovic
<andrej.mitrovich at gmail.com> wrote:
> On 3/30/11, spir <denis.spir at gmail.com> wrote:
>> On 03/30/2011 05:03 PM, Andrej Mitrovic wrote:
>>> Doesn't opApply provide this?
>>
>> Yes, but using opApply seems discouraged (scheduled for deprecation?).
>
> Huh, when did this happen? It's nicely described in TDPL, why would it
> go away?
It's not going away. It provides mechanisms that are impossible with
ranges. And it does not detract from ranges in general -- one can define
both opApply and a range interface. opApply is only for foreach, whereas
ranges can be used in any number of ways.
-Steve
More information about the Digitalmars-d
mailing list