Do infinite bidirectional ranges make any sense?
Andrej Mitrovic
andrej.mitrovich at gmail.com
Sun Aug 12 10:05:37 PDT 2012
On 8/12/12, Jonathan M Davis <jmdavisProg at gmx.com> wrote:
> Can anyone think of any situation where an infinite bidirectional range
> would
> make any sense at all?
Cyclic buffers? At least in audio it's common to play buffer samples
in a loop and even play them in reverse. I'd imagine internally C/++
apps just have an index which is inc/dec'remented based on a setting,
and once the index is 0 or lengthOf(array) and depending on the
reverse switch the index is reset to its beginning position.
More information about the Digitalmars-d
mailing list