Overhauling the notion of output range

Philippe Sigaud philippe.sigaud at gmail.com
Sun Jul 11 22:45:05 PDT 2010


On Mon, Jul 12, 2010 at 03:17, Andrei Alexandrescu <
SeeWebsiteForEmail at erdani.org> wrote:

> 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!
> <http://www.dsource.org/projects/phobos/browser/trunk/phobos/std/range.d#L227>



>
> http://www.dsource.org/projects/phobos/browser/trunk/phobos/std/range.d#L227
>
>
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.

Hmm...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20100712/0bdc3c42/attachment.html>


More information about the Digitalmars-d mailing list