std.compress
Walter Bright
newshound2 at digitalmars.com
Tue Jun 4 13:52:44 PDT 2013
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.
More information about the Digitalmars-d
mailing list