On 6/4/2013 1:30 PM, Byron Heads wrote:
but a compress interface would be nice:

interface Compress
{
     ubyte[] compress(ubyte[]);
     ubyte[] uncompress(ubyte[]);
}

that way you can use any compress algorithm
bool send(Compress)(Socket sock);

That isn't how ranges work. Ranges already define an input and an output interface. We don't need to invent another scheme.

Reply via email to