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