multiple-item traversal ranges

spir denis.spir at gmail.com
Wed Mar 30 11:41:42 PDT 2011


On 03/30/2011 08:03 PM, Andrej Mitrovic 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?

Has been mentionned several times on D lists. Dunno why, though... Anyway, D 
should chose. Beeing forced to implement both opApply and ranges is... well... 
There is also the apparently half implemented trick of "naked" opSlice() that 
should provide for magic iteration. Too much is too much.

Deniq
-- 
_________________
vita es estrany
spir.wikidot.com



More information about the Digitalmars-d mailing list