buffered input

spir denis.spir at gmail.com
Sun Feb 6 13:51:12 PST 2011


On 02/06/2011 08:49 PM, Tomek Sowiński wrote:
> Andrei Alexandrescu napisał:
>
>>> Also: could a (truely) circular buffer help&  solve the above copy
>>> problem, concretely?
>>
>> Not if you want infinite lookahead, which I think is what any modern
>> buffering system should offer.
>
> Truely circular, probably not, but a wrap-around slice (circular view of length at most underlying.length) does offer that and solves the copy problem with style.

Right.

_________________
vita es estrany
spir.wikidot.com



More information about the Digitalmars-d mailing list