File.byLine should return dups?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Fri Jun 4 13:04:56 PDT 2010


On 06/04/2010 02:58 PM, Graham Fawcett wrote:
[snip]
> Thanks for the response. Yes, it makes mode to favour performance for
> the common case, and as you say it's not hard to resolve this issue.
>
>> Now, that being said, a nice addition would be to create a duper range
>> that allows you to do one expression:
>>
>> foreach(char[] line; retro(array(duper(f.byLine()))))
>
> Yes -- duper (and iduper) for the win! Great idea.

I wonder what we can do to automatically reject such programs.

Andrei


More information about the Digitalmars-d mailing list