dmdz

Walter Bright newshound1 at digitalmars.com
Thu Mar 11 18:27:16 PST 2010


Ellery Newcomer wrote:
>> I've hoped to rewrite std.zip forever, but found no time to do so.
> 
> Well, heck. Maybe I'll see what I can do with it. Do you want it to 
> conform to any interface in particular?

What I'd like to see is the creation of a library file interface, say:

    std.archive

and then have implementations of it:

    std.archive.zip
    std.archive.tar
    std.archive.lha
    std.archive.7zip

etc. Pass a file name to a factory method of std.archive, and it figures 
out what kind of archive it is, instantiates the appropriate 
implementation, etc.



More information about the Digitalmars-d mailing list