Revised RFC on range design for D2
Ary Borenszweig
ary at esperanto.org.ar
Fri Sep 12 06:04:37 PDT 2008
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
More information about the Digitalmars-d-announce
mailing list