dmd 2.029 release
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Thu Apr 23 07:20:58 PDT 2009
grauzone wrote:
> Andrei Alexandrescu wrote:
>> grauzone wrote:
>>>> Yes. The way it should be is not with sink, but with the standard
>>>> output iterator method put().
>>>>
>>>> void streamOut(T, R)(T object, R range)
>>>> {
>>>> foreach(x; a) range.put(x);
>>>> range.put(b);
>>>> range.put(c);
>>>> }
>>>
>>> Eh. Is a sink callback too simple and easy to use or what?
>>
>> ?
>
> Why make it more complicated than it has to be?
I am making it simpler.
> Also, I don't know ranges, but your example doesn't seem to make much
> sense.
s/but/consequently/
Andrei
More information about the Digitalmars-d-announce
mailing list