maybe i got a bug
Ali Çehreli
acehreli at yahoo.com
Thu Jan 31 14:56:49 PST 2013
On 01/31/2013 02:27 PM, bioinfornatics wrote:
> On Thursday, 31 January 2013 at 22:20:25 UTC, Ali Çehreli wrote:
>> This is not related to your actual problem but I have noticed that you
>> have side-effects in your FastqReader.front. I think you will benefit
>> from a design where front simply returns the front element and all of
>> the side-effects are inside popFront().
>>
>> Ali
>
> but as fastq instance used to iterate and fastq instance called are not
> same, any fastq method where depend the position in given range won't
> work. you need to return all possible value that you could be used
Apparently I didn't understand the code. :)
My comments should be generally correct: Calling front() multiple times
should return the same element and it should not change the state of the
range.
Ali
More information about the Digitalmars-d-learn
mailing list