Do infinite bidirectional ranges make any sense?

bearophile bearophileHUGS at lycos.com
Sun Aug 12 05:00:16 PDT 2012


Jonathan M Davis:

> Can anyone think of any situation where an infinite 
> bidirectional range would make any sense at all?

I have implemented a simple Turing machine (to test a busy 
beaver) in D where the tape is finite in both directions, but 
when the machine tries to write past one of the ends of the tape, 
it grows longer as needed. I have not used ranges to implement 
this, but maybe they are usable for this.

Bye,
bearophile


More information about the Digitalmars-d mailing list