home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / programm / 2428 < prev    next >
Encoding:
Text File  |  1992-08-22  |  1.5 KB  |  34 lines

  1. Newsgroups: comp.programming
  2. Path: sparky!uunet!decwrl!deccrl!news.crl.dec.com!pa.dec.com!decprl!decprl!boyd
  3. From: boyd@prl.dec.com (Boyd Roberts)
  4. Subject: Re: ANSI C, was Re: Teaching the basics
  5. Message-ID: <1992Aug22.113219.4821@prl.dec.com>
  6. Sender: news@prl.dec.com (USENET News System)
  7. Nntp-Posting-Host: prl313.prl.dec.com
  8. Organization: Digital Equipment Corporation - Paris Research Laboratory
  9. References: <1992Aug21.154839.2664@organpipe.uug.arizona.edu> <1992Aug21.232022.28931@prl.dec.com> <1992Aug22.034214.19539@linus.mitre.org>
  10. Date: Sat, 22 Aug 1992 11:32:19 GMT
  11. Lines: 21
  12.  
  13. In article <1992Aug22.034214.19539@linus.mitre.org>, crawford@church.mitre.org (Randy Crawford) writes:
  14. > And why would you want to defer the task until the link step?  Don't you _want_ 
  15. > to be told ASAP that your argument types don't match those of the function you 
  16. > are calling or that you've provided the wrong number of arguments in the call?
  17. > That's the reasoning behind why compilers and linkers rely on function 
  18. > prototypes.
  19.  
  20. Nonsense.  Prototypes are cheap hack, and they can lie, whereas the actual
  21. function declaration specifies it exactly.  The protypes just say that the
  22. calls agree with the prototypes, and that's not the same as the actual
  23. declaration.
  24.  
  25. Putting extra info in the object would be a total win.  Why should I go to
  26. declare my functions twice, when the machine can do that stuff for me?
  27.  
  28.  
  29. Boyd Roberts            boyd@prl.dec.com
  30.  
  31. ``When the going gets wierd, the weird turn pro...''
  32.