buffered input

Tomek Sowiński just at ask.me
Sun Feb 6 11:49:25 PST 2011


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.

-- 
Tomek



More information about the Digitalmars-d mailing list