std.compress
Peter Alexander
peter.alexander.au at gmail.com
Thu Jun 13 06:26:26 PDT 2013
On Thursday, 13 June 2013 at 13:15:03 UTC, Andrej Mitrovic wrote:
> What happens when we get std.compression.lz78 and you end up
> accidentally calling compress on with lz77 and expand with lz78?
The exact same typo could happen with your structs. You haven't
solved anything:
> module serialize;
> import std.compression; // package import
> void writeFile(T)(T[] data, string filename) {
> data.lz77.compress.writeFile(filename); }
void writeFile(T)(T[] data, string filename) {
data.lz78.compress.writeFile(filename);
}
oops!
More information about the Digitalmars-d
mailing list