DMD 0.170 release
Walter Bright
newshound at digitalmars.com
Wed Oct 18 11:56:01 PDT 2006
Oskar Linde wrote:
> Walter Bright wrote:
>> Bill Baxter wrote:
>>> I don't see how it helps. If you can already do:
>>> foreach(T item; &collection.reversed()) { }
>>
>> That doesn't work for arrays.
>
> In what way does it not work? I have been doing:
>
> foreach(x; "abcd".reverseView())
> writef("%s",x);
>
> prints "dcba"
Try that, along with foreach_reverse, and look at the generated code.
More information about the Digitalmars-d-announce
mailing list