home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / misc / 3633 < prev    next >
Encoding:
Text File  |  1992-11-13  |  1.8 KB  |  36 lines

  1. Newsgroups: comp.lang.misc
  2. Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!purdue!mentor.cc.purdue.edu!pop.stat.purdue.edu!hrubin
  3. From: hrubin@pop.stat.purdue.edu (Herman Rubin)
  4. Subject: Re: Pointers
  5. Message-ID: <BxnrI0.10M@mentor.cc.purdue.edu>
  6. Sender: news@mentor.cc.purdue.edu (USENET News)
  7. Organization: Purdue University Statistics Department
  8. References: <BxJzzv.4H7@mentor.cc.purdue.edu> <721539019@sheol.UUCP> <1992Nov12.203014.11596@newshost.lanl.gov>
  9. Date: Fri, 13 Nov 1992 14:13:11 GMT
  10. Lines: 24
  11.  
  12. In article <1992Nov12.203014.11596@newshost.lanl.gov> jlg@cochiti.lanl.gov (J. Giles) writes:
  13. >If the only things you can do with a pointer are to dereference it,
  14. >pass it as a procedure argument, or assign it from another of the same
  15. >type, then you never needed the pointer to begin with.  What you needed 
  16. >was for the data type to which it points to be a first-class type.  
  17.  
  18. >Dr. Rubin's use of pointers to functions is exactly of that form.
  19. >He can do nothing with them except dereference, pass, or assign them.
  20. >He would actually get *greater* capability if the language he used
  21. >allowed `function' to be a first-class data type with assignment,
  22. >partial application (currying), and composition as it's defined
  23. >operations.
  24.  
  25. Even if you have the greater capablility, do you have to insist on
  26. making things complicated by using it?  I use pointers both for 
  27. functions and for descriptors.  I use pointers to get a more powerful
  28. version of COMMON blocks.  I use pointers because any non-brain-damaged
  29. machine uses them.  In fact, Fortran (at least up to F77) uses only
  30. pointers, but all pointers are fixed!
  31. -- 
  32. Herman Rubin, Dept. of Statistics, Purdue Univ., West Lafayette IN47907-1399
  33. Phone: (317)494-6054
  34. hrubin@snap.stat.purdue.edu (Internet, bitnet)  
  35. {purdue,pur-ee}!snap.stat!hrubin(UUCP)
  36.