Any chance to call Tango as Extended Standard Library
Bill Baxter
wbaxter at gmail.com
Sun Jan 18 16:47:14 PST 2009
On Mon, Jan 19, 2009 at 9:16 AM, Andrei Alexandrescu
<SeeWebsiteForEmail at erdani.org> wrote:
>> Unless it's a class you mean?
>
> Yah, ranges are meant to have value semantics. If you have a class container
> exposing ranges, define the range separately from the container itself:
>
> MyIterable collection;
> foreach (element; collection.all) {}
> foreach (element; collection.all) {}
Add .opRange so that's not necessary? Or allow opApply to return a range?
Otherwise it looks like a step backwards.
--bb
More information about the Digitalmars-d
mailing list