home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / cplus / 12443 < prev    next >
Encoding:
Internet Message Format  |  1992-08-17  |  1.2 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!wupost!m.cs.uiuc.edu!sunb10.cs.uiuc.edu!sparc6.cs.uiuc.edu!pjl
  2. From: pjl@sparc6.cs.uiuc.edu (Paul Lucas)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: pointer to member functions question
  5. Message-ID: <1992Aug17.211432.11527@sunb10.cs.uiuc.edu>
  6. Date: 17 Aug 92 21:14:32 GMT
  7. References: <hons.714103910@rkw-risc>
  8. Sender: news@sunb10.cs.uiuc.edu
  9. Organization: University of Illinois at Urbana-Champaign
  10. Lines: 16
  11.  
  12. In <hons.714103910@rkw-risc> hons@rkw-risc.cs.up.ac.za (Honneurs Studente) writes:
  13.  
  14.  
  15. >Is it possible to cast a pointer to a member function for a specific object 
  16. >to a function pointer. The reason I ask is that sometimes operating systems expect function pointers as event handlers. Let us say for example that an 
  17. >object sets a timer and wants to give the system routine that sets the timer a 
  18. >pointer to a function to call when the timer expires. It would be nice if that
  19. >function pointer could in fact be a member function of the class of which
  20. >the object in question is an instance. I'm using a GLOCKENSPIEL C++ on VMS.
  21. >If anyone can help please reply by e-mail to 
  22.  
  23. *****>    No, you can't.
  24. -- 
  25.     - Paul J. Lucas                University of Illinois    
  26.       AT&T Bell Laboratories        at Urbana-Champaign
  27.       Naperville, IL            pjl@cs.uiuc.edu
  28.