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

  1. Newsgroups: comp.lang.misc
  2. Path: sparky!uunet!walter!att-out!pacbell.com!ames!sun-barr!cs.utexas.edu!hellgate.utah.edu!lanl!cochiti.lanl.gov!jlg
  3. From: jlg@cochiti.lanl.gov (J. Giles)
  4. Subject: Re: Pointers
  5. Message-ID: <1992Nov12.203014.11596@newshost.lanl.gov>
  6. Sender: news@newshost.lanl.gov
  7. Organization: Los Alamos National Laboratory
  8. References: <BxJzzv.4H7@mentor.cc.purdue.edu> <721539019@sheol.UUCP>
  9. Date: Thu, 12 Nov 1992 20:30:14 GMT
  10. Lines: 14
  11.  
  12. If the only things you can do with a pointer are to dereference it,
  13. pass it as a procedure argument, or assign it from another of the same
  14. type, then you never needed the pointer to begin with.  What you needed 
  15. was for the data type to which it points to be a first-class type.  
  16.  
  17. Dr. Rubin's use of pointers to functions is exactly of that form.
  18. He can do nothing with them except dereference, pass, or assign them.
  19. He would actually get *greater* capability if the language he used
  20. allowed `function' to be a first-class data type with assignment,
  21. partial application (currying), and composition as it's defined
  22. operations.
  23.  
  24. -- 
  25. J. Giles
  26.