std.algorithm.splitter defect: isTerminator version does not return BiderectionalRand

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sat Jun 30 07:01:08 PDT 2012


On 6/30/12 7:21 AM, monarch_dodra wrote:
> The "isTerminator" version of std.algorithm.splitter, eg:
> auto splitter(alias isTerminator, Range)(Range input)
>
> Returns an object that is "only" ForwardRange. This is especially weird,
> since the normal "separator" version is bidirectional. Comparing using a
> function rather than with a value should have no difference...

I think that may as well be an oversight in the implementation of splitter.

Andrei


More information about the Digitalmars-d mailing list