dmd 2.029 release

Christopher Wright dhasenan at gmail.com
Thu Apr 23 15:01:08 PDT 2009


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?


More information about the Digitalmars-d-announce mailing list