home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / pascal / 5340 < prev    next >
Encoding:
Text File  |  1992-09-11  |  1.7 KB  |  37 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: TP units question
  5. Message-ID: <dmurdoch.151.716241049@mast.queensu.ca>
  6. Lines: 25
  7. Sender: news@knot.ccs.queensu.ca (Netnews control)
  8. Organization: Queen's University
  9. References: <1992Sep4.141203.28370@news.columbia.edu> <ART.92Sep10133100@world.std.com> <ART.92Sep11131535@world.std.com>
  10. Date: Fri, 11 Sep 1992 19:50:49 GMT
  11.  
  12. In article <ART.92Sep11131535@world.std.com> art@world.std.com (Al Thompson) writes:
  13. >   That sounds like a bad flaw in the Extended Standard.  Without the compiler 
  14. >   checking up on you, how do you know that the parameter list you put in the 
  15. >   implementation section is really correct?  
  16. >
  17. >You miss the point.  You are not supposed to put the parameter list in
  18. >the implementation section.  Therefore it will be neither correct nor
  19. >incorrect.  It just doesn't appear.  In TP this is optional.
  20.  
  21. No, I think you missed the point.  You said (and repeat below) that you *do* 
  22. put the parameter list in the implementation section, but in a comment.  
  23. What I'm saying is that you're much better off putting it in as code, so 
  24. that the compiler can check that you got it right.
  25.  
  26. >But in TP its optional.  In TP I never include the parameter list in the
  27. >implementation section.  What I do is write the procedure and then using
  28. >my ever helpful emacs copy the procedure heading to the interface
  29. >section.  After that's done I go back to the implementation and comment
  30. >out the parameter list.
  31.  
  32. That sounds like a crazy thing to do.  Why not let the compiler see it 
  33. twice?  It's free insurance against mistakes.
  34.  
  35. Duncan Murdoch
  36. dmurdoch@mast.queensu.ca
  37.