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

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!das.wang.com!wang!news
  3. From: s2942275@techst02.technion.ac.il (Yaniv Golan)
  4. Subject: Distributing TPUs
  5. Reply-To: s2942275@techst02.technion.ac.il (Yaniv Golan)
  6. Organization: Technion
  7. Date: Mon, 21 Dec 1992 13:54:20 GMT
  8. Message-ID: <1992Dec21.135420.10280@discus.technion.ac.il>
  9. Sender: news@wang.com
  10. Lines: 59
  11.  
  12. I've got a question, and it might be a stupid question...
  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. Now the reason the question might be stupid, is that I've already done it 
  18. once. But i tried it now, and to my surprise, when trying to compile a 
  19. program using my unit without the other one being present, the compiler
  20. produced an error message stating it can't find the used unit.
  21.  
  22. Maybe an example would be in place to clarify what I mean :
  23.  
  24. Unit A;
  25. INTERFACE
  26. procedure x;
  27. IMPLEMENTATION
  28. procedure x;
  29. begin
  30.   .
  31.   .
  32. end;
  33.  
  34. END.
  35.  
  36. ------
  37.  
  38. Unit B;
  39. INTERFACE
  40. procedure y;
  41. IMPLEMENTATION
  42. Uses A;
  43. procedure y;
  44. begin
  45.   .
  46.   .
  47.   x;
  48.   .
  49. end;
  50.  
  51. END.
  52.  
  53. And now, when i try to compile the following program :
  54.  
  55. program z;
  56. uses B;
  57. begin
  58.   y;
  59. end.
  60.  
  61.  
  62. with only B.TPU in my path, the compiler says it can't find A.PAS...
  63.  
  64. What am i doing wrong? Or maybe it is impossible to do it?
  65.  
  66. Thanks,
  67.  
  68. Yaniv Golan
  69. -- 
  70. E-Mail : s2942275@techst02.technion.ac.il
  71.