www.digitalmars.com         C & C++   DMDScript  

D - Feature Request: Packaged libraries

reply Kublai Kahn <Kublai_member pathlink.com> writes:
I have an idea.  You could provide packaged library support.
You could support tar archived libraries.  Rather than include
the classes in separate files ect. They could be in a tar or archive file.

or libraries could be in an archive to make them more organized.
One file could hold 10 different versions or libraries in one file.
The Advantage is organization.  You could also add or remove files from
the archive with the tar utility.  The advantage of tar is it is standard
whereas Jars are Proprietary to Sun.  It doesn't even have to be a tar format.
It could be another D format.

Example D Tar Class File:
xtdio.tar
-rwxrwxrwx   10000 catalog.file  -- The meta catalog file
-rwxrwxrwx   12000 fileio        -- The filio library
-rwxrwxrwx   1233  stdout        -- The stdout library 
-rwxrwxrwx   23332 xtdxo         -- The xtdxo library 

Example
import xtdio.fileio.tar;


Although Jars are better for Java because it has dynamic loading.
Mar 06 2003
next sibling parent "Ken Carpenter" <kencr shaw.ca> writes:
"Kublai Kahn" <Kublai_member pathlink.com> wrote in message
news:b496r7$177t$1 digitaldaemon.com...
The advantage of tar is it is standard whereas Jars are Proprietary to Sun.
Actually, JARs are not proprietary. They are just ZIP files with a different extension. Ken Carpenter
Mar 06 2003
prev sibling parent Olaf Rogalsky <olaf.rogalsky theorie1.physik.uni-erlangen.de> writes:
Kublai Kahn wrote:
 the archive with the tar utility.  The advantage of tar is it is standard
 whereas Jars are Proprietary to Sun.  It doesn't even have to be a tar format.
As the name suggests, tar is for tape archives. For disk archives there is the conventional "ar" command (yes sir, sure, I am talking about UN*X). But the you end up with the usual "*.a" libraries :-). -- +----------------------------------------------------------------------+ I Dr. Olaf Rogalsky Institut f. Theo. Physik I I I Tel.: 09131 8528440 Univ. Erlangen-Nuernberg I I Fax.: 09131 8528444 Staudtstrasse 7 B3 I I rogalsky theorie1.physik.uni-erlangen.de D-91058 Erlangen I +----------------------------------------------------------------------+
Mar 07 2003