<div class="gmail_quote">On Mon, Jul 12, 2010 at 03:17, Andrei Alexandrescu <span dir="ltr"><<a href="mailto:SeeWebsiteForEmail@erdani.org">SeeWebsiteForEmail@erdani.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
In related news, there's been this burning desire regarding a lightweight output range defined as simply a delegate that accepts const(char)[]. That range is an output range all right, and the way you output to it is by simply calling the delegate!<br>
<a href="http://www.dsource.org/projects/phobos/browser/trunk/phobos/std/range.d#L227" target="_blank"></a></blockquote><div> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<a href="http://www.dsource.org/projects/phobos/browser/trunk/phobos/std/range.d#L227" target="_blank">http://www.dsource.org/projects/phobos/browser/trunk/phobos/std/range.d#L227</a><br><br></blockquote><div><br>It's still early where I live, but... For the callable case, why just accepting E[] instead of any range with E as element? Though, thinking about it, I right now have no idea how to put that into a template constraint, given only R and E.<br>
<br>Hmm...<br><br><br><br></div></div>