File.byLine should return dups?

Graham Fawcett fawcett at uwindsor.ca
Fri Jun 4 13:10:38 PDT 2010


On Fri, 04 Jun 2010 15:04:56 -0500, Andrei Alexandrescu wrote:

> 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

isForwardPersistentRange vs. isForwardVolatileRange?

Graham


More information about the Digitalmars-d mailing list