home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / misc / 3803 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1.4 KB

  1. Path: sparky!uunet!usc!rpi!psinntp!psinntp!dg-rtp!sheol!throopw
  2. From: throopw@sheol.UUCP (Wayne Throop)
  3. Newsgroups: comp.lang.misc
  4. Subject: Re: Pointers
  5. Message-ID: <722143386@sheol.UUCP>
  6. Date: 19 Nov 92 00:34:55 GMT
  7. References: <Bxw0H0.6EF@mentor.cc.purdue.edu>
  8. Lines: 26
  9.  
  10. : From: hrubin@mentor.cc.purdue.edu (Herman Rubin)
  11. : Message-ID: <Bxw0H0.6EF@mentor.cc.purdue.edu>
  12. ::: I do not see how any system of references will enable writing
  13. :::                 *fill(*descriptor)
  14. ::: any faster.
  15. :: How about         fill(descriptor)  ?
  16. : "This does not compute."  The module which produces the contents of
  17. : fill and descriptor is compiled separately from the one that calls it.
  18. : In addition, I specified that there may even be run-time changes, which
  19. : the calling module does not know.
  20.  
  21. As I have attempted to point out three times now, one can write
  22.  
  23.          fr(dr)        instead of           *fp(*dp)
  24.  
  25. because the *declaration* of a reference makes the indirection
  26. implicit during use, while declaration of a pointer does not.
  27. Either notation can have *all* of the properties mentioned
  28. by Herman Rubin above.
  29.  
  30. This means that reference notations are identically fast, will map
  31. identically to machine instructions, yet are more flexible to change
  32. (since changes can be introduced at the definition site instead of at
  33. every use site), and involve a simpler notation at the use site. 
  34. --
  35. Wayne Throop  ...!mcnc!dg-rtp!sheol!throopw
  36.