std.compress
David
d at dav1d.de
Tue Jun 4 09:34:19 PDT 2013
Am 04.06.2013 18:09, schrieb Walter Bright:
> On 6/4/2013 6:34 AM, Jacob Carlborg wrote:
>> I'm wondering if (un)compress can take the compressing algorithm as a
>> template
>> parameter. Does that make sense?
>>
>> Something like:
>>
>> auto result = data.compress!(LZW);
>>
>> Then we could pass different compressing algorithms to the compress
>> function.
>
> I don't see the point. Furthermore, it requires that the compress
> template know about all the compression algorithms available, which
> limits future expansion.
>
No the compression type only has to provide a certain api.
More information about the Digitalmars-d
mailing list