Tricky semantics of ranges & potentially numerous Phobos bugs

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed Oct 17 09:39:13 PDT 2012


On 10/16/12 1:28 PM, Jonathan M Davis wrote:
> So, it's fine that ByLine is a range as long as we're willing to put up with it
> not working with a lot of range-based functions because of its abnormal
> behavior. But I don't think that it's at all reasonable for range-based
> functions in general to not be able to rely on front returning the same type
> every time or on its value disappearing or becoming invalid in some way after
> a call to popFront. That's completely untenable IMHO.

Then what is to you the difference between an input range and a forward 
range?

Andrei



More information about the Digitalmars-d mailing list