On 07/09/2012 06:05 PM, Mehrdad wrote:
With your design you need to add something extra to allow writing to
elements of a single-pass range.
If that's the case, I'd hate to tell you this, but _unless_
you're planning on removing the notion of input/output ranges
(and perhaps adding single-pass/multi-pass), you're doing it
wrong. :-)
That capability is simply /not needed/ when your /only/ contract
is that something is an input range.
Asking an input range, "hey, can I write to you?" is just...
insulting!
That's like asking an electrical engineer if he can plumb.
Consider the possibility that this electrical engineer might be a
plumber as well.