home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / cplus / 19052 < prev    next >
Encoding:
Text File  |  1993-01-12  |  1.6 KB  |  36 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!howland.reston.ans.net!paladin.american.edu!darwin.sura.net!udel!rochester!rocksanne!news
  3. From: heliotis.ROCH803@xerox.com (Jim Heliotis)
  4. Subject: Re: Callbacks in C++
  5. Message-ID: <1993Jan12.141728.27504@spectrum.xerox.com>
  6. Sender: news@spectrum.xerox.com
  7. Reply-To: heliotis.ROCH803@xerox.com
  8. Organization: Xerox Corporation, Webster NY
  9. References: <rmartin.726677907@thor>
  10. Date: Tue, 12 Jan 1993 14:17:28 GMT
  11. Lines: 23
  12.  
  13. In article 726677907@thor, rmartin@thor.Rational.COM (Bob Martin) writes:
  14. >
  15. >If you are designing a class library, you don't generally want to
  16. >provide callbacks to your users.  Instead, you want to provide them
  17. >with interfaces that they can use to receive information from you.
  18. >These interfaces are abstract classes.  Pure virtual functions are
  19. >declared which allow information to be passed from your class library
  20. >to user objects derived from the abstract classes.  The users can
  21. >implement the derivatives of the pure virtuals as they see fit.
  22. >
  23.  
  24. That sounds like a callback to me, especially if something else in the
  25. library calls the base class's pure virtual function.  I think it's
  26. just a question of semantics.
  27.  
  28. ============================================================================
  29. Jim Heliotis                                       Voice Phone: 716-383-7410
  30. Xerox Corporation                                   FAX Phone:  716-383-7395
  31. 435 W. Commercial St.                                     Mail Stop: 803-01A
  32. East Rochester, NY 14445              Electronic Mail: JEH.ROCH803@Xerox.COM
  33. ============================================================================
  34.  
  35.  
  36.