home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / pascal / 7601 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.9 KB  |  40 lines

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