timon.gehr at gmx.ch
Mon Jul 9 09:06:56 PDT 2012
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...
> That's like asking an electrical engineer if he can plumb.
Consider the possibility that this electrical engineer might be a
plumber as well.
More information about the Digitalmars-d