Should std.algorithm.find demand a reference to range elements?

Daniel Murphy via Digitalmars-d digitalmars-d at puremagic.com
Thu Feb 5 03:04:52 PST 2015


"Jakob Ovrum"  wrote in message news:flxonctqqtzmtyintbtj at forum.dlang.org...

> However, this would set a possibly disruptive precedent that range 
> algorithms must no longer use foreach on aggregate types...

I think this precedent already exists thanks to the bad behavior of foreach 
over narrow strings. 



More information about the Digitalmars-d mailing list