std.compress

Walter Bright newshound2 at digitalmars.com
Tue Jun 4 09:09:08 PDT 2013


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.



More information about the Digitalmars-d mailing list