Tricky semantics of ranges & potentially numerous Phobos bugs

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed Oct 17 10:17:22 PDT 2012


On 10/16/12 3:21 PM, Jonathan M Davis wrote:
> Not a bad idea, though it's still arguably a bit disgusting to potentially
> have to check for that all over the place. Inevitably, most functions won't
> check, and ByLine _still_ won't work. Yes, Phobos would presumably end up
> checking in most cases, but I suspect that little else will.

Then "little else" should claim working with input ranges and rely on 
forward ranges semantics.

> The problem is that what ByLine is doing is incredibly abnormal.

Works exactly as intended, and is eerily normal.

Andrei



More information about the Digitalmars-d mailing list