partition(range, leftsubrange) or partition(range, rightsubrange)

Bill Baxter wbaxter at gmail.com
Wed Sep 10 20:37:42 PDT 2008


On Thu, Sep 11, 2008 at 12:06 PM, Andrei Alexandrescu
<SeeWebsiteForEmail at erdani.org> wrote:
> Bill Baxter wrote:
>>
> Sounds great! Thanks Bill. By the way, I am indebted to you for revealing to
> me that sentinel-terminated collections are not limited to linked lists.
> Things like zero-terminated arrays are the same deal.

I think you might have made that particular leap yourself, but anyway,
you're welcome.  Thanks to you too.  I've learned a lot from this
discussion about bidirectional iterators and ranges and such.

I'm still not 100% convinced that this is all going to be easier and
better than just doing iterators in the end, but I think at this point
I can't say without trying it out some.  And you have convinced me
that ranges will at least be a sufficient and good way to handle
std.algorithm's needs.

--bb


More information about the Digitalmars-d-announce mailing list