Revised RFC on range design for D2
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Fri Sep 12 06:08:59 PDT 2008
Ary Borenszweig wrote:
> Andrei Alexandrescu wrote:
>> In wake of the many excellent comments and suggestions made here, I
>> made one more pass through the draft proposal for ranges.
>>
>> http://ssli.ee.washington.edu/~aalexand/d/tmp/std_range.html
>>
>> There are some comments in red illustrating some uncertainties (not
>> all), and the names of the primitives have been updated. Bicycle shed
>> galore! But don't forget to comment on the reactor as well :o).
>>
>>
>> Andrei
>
> Just a little typo, in the "Output range" example:
>
> // Copies a range to another
> void copy(R1, R2)(R1 src, R2 tgt)
> {
> for (; !src.done; src.head)
> {
> tgt.put(src.head);
> }
> }
>
> the for increment should be src.next
Fixed, thanks Ary.
Andrei
More information about the Digitalmars-d-announce
mailing list