dmd 2.029 release

Jarrett Billingsley jarrett.billingsley at gmail.com
Thu Apr 23 17:40:27 PDT 2009


On Thu, Apr 23, 2009 at 6:01 PM, Christopher Wright <dhasenan at gmail.com> wrote:
> Andrei Alexandrescu 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);
>> }
>
> // object.d
> class Object
> {
>        void streamOut(R)(R range);
> }
>
> No?

No.  Templated methods are not virtual.


More information about the Digitalmars-d-announce mailing list