home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!cs.utexas.edu!torn!news.ccs.queensu.ca!mast.queensu.ca!dmurdoch
- From: dmurdoch@mast.queensu.ca (Duncan Murdoch)
- Subject: Re: Distributing TPUs
- Message-ID: <dmurdoch.370.724951476@mast.queensu.ca>
- Lines: 28
- Sender: news@knot.ccs.queensu.ca (Netnews control)
- Organization: Queen's University
- References: <1992Dec21.135420.10280@discus.technion.ac.il>
- Date: Mon, 21 Dec 1992 15:24:36 GMT
-
- In article <1992Dec21.135420.10280@discus.technion.ac.il> s2942275@techst02.technion.ac.il (Yaniv Golan) writes:
- >
- >I want to distribute a TP unit which uses a second unit. I do not want
- >to distribute the second unit with it, only the first TPU. Can it be done ?
-
- It's not possible to compile a program unless all the units it uses and all
- the units they use (and so on recursively) are available. Code isn't copied
- into a .TPU when it uses another one, only a pointer saying where to find it.
-
- This means that if you want to distribute a .TPU file, it's completely
- useless to anyone who doesn't have all the units it depends on. It's also
- likely to be useless to anyone who has different versions of
- those; that's why a System unit replacement can't add anything, since it
- would make all units compiled against the old System incompatible.
-
- You should also realize that there are now something like 9 different
- flavours of .TPU file around that are all mutually incompatible (TP 4, 5,
- 5.5, 6, 7, TPW 1 & 1.5, BP 7 protected, BP 7 windows) because of references
- to different System units and because of changes to the format. (I think
- there are 5 different formats, but 9 different System and/or support
- unit versions.) There are also TP-compatible compilers like Stony Brook's
- Pascal+ and Microsoft's Quick Pascal that can't use .TPU files at all. You'd
- give your program a much wider audience by distributing it in source form,
- perhaps without giving away source to external .OBJ files.
-
-
- Duncan Murdoch
- dmurdoch@mast.queensu.ca
-