home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / pascal / 5323 < prev    next >
Encoding:
Internet Message Format  |  1992-09-11  |  1.8 KB

  1. Path: sparky!uunet!mcsun!corton!babbage!imag!imag.fr!dumas
  2. From: dumas@imag.fr (Olivier Dumas)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Re: TP units question
  5. Message-ID: <39704@imag.imag.fr>
  6. Date: 11 Sep 92 07:28:12 GMT
  7. References: <1992Sep4.141203.28370@news.columbia.edu> <dmurdoch.123.715622406@mast.queensu.ca> <1992Sep9.152408.842@iplmail.orl.mmc.com>
  8. Sender: usenet@imag.fr
  9. Reply-To: dumas@bounty.imag.fr
  10. Organization: BullImag
  11. Lines: 25
  12. Nntp-Posting-Host: samoa
  13.  
  14. In article <1992Sep9.152408.842@iplmail.orl.mmc.com>, steveg@iplmail.orl.mmc.com (Steve Gabrilowitz) writes:
  15.  
  16. > Another disadvantage of doing this is that if you make any changes to the
  17. > parameter list in the routine, you have to change it in two places (interface and
  18. > implementation) instead of just one.  Also, when you do this then TPC /M will
  19. I don't agree with that. If you put the name of a procedure  in the interface,
  20. you need to put the parameter list, but when you implement it, you don't have 
  21. to repeat the parameter list.
  22. Of course, repeating it makes the life easier when you read the implementation.
  23.  
  24. btw, it is wiser not to interface a locally-used procedure, for maintenance reasons (as said by Duncan Murdoch in an earlier article)
  25.  
  26. > have to recompile all the units that use the one with the routine you just
  27. > modified, where if all the changes had been made in the implementation section it
  28. > would not be necessary.
  29.  
  30. -- 
  31. +------------------------------------------------------------+
  32. | Olivier DUMAS  -- e-mail : dumas@bounty.imag.fr            |
  33. | Unite Mixte BULL-Imag -- ZI de Mayencin -- Gieres - France |
  34. +------------------------------------------------------------+
  35. Mathematics may be defined as the subject in which we never know what we
  36. are talking about, nor whether what we are saying is true.
  37.                 -- Bertrand Russell (1872-1967)
  38.