Overhauling the notion of output range

torhu no at spam.invalid
Mon Jul 12 10:43:18 PDT 2010


On 12.07.2010 18:48, Steven Schveighoffer wrote:
[...]
> So what happens when you call put(r, e) for one of these output
> classes? Instead of just calling add(e), it calls (add((&e)[0..1]))
> which in turn goes through some needless loop, which then ends up
> calling add(e).  I don't see why this is preferable.

put(r, e) prefers to call r.put(e) for single element adds.  Doesn't 
that take care of it?


More information about the Digitalmars-d mailing list