home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / cplus / 18008 < prev    next >
Encoding:
Text File  |  1992-12-15  |  677 b   |  30 lines

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!caen!uflorida!math.ufl.edu!maple.circa.ufl.edu!X9999BVJ
  2. From: x9999bvj@maple.circa.ufl.edu
  3. Newsgroups: comp.lang.c++
  4. Subject: & of inline functions
  5. Message-ID: <1992Dec13.185310.20140@math.ufl.edu>
  6. Date: 13 Dec 92 18:53:10 GMT
  7. Sender: news@math.ufl.edu
  8. Reply-To: X9999BVJ@oak.circa.ufl.edu
  9. Organization: Center for Instructional and Research Computing Activities
  10. Lines: 18
  11.  
  12.  
  13. What is the official method for handling taking the address of an inline
  14. function?  For example, if you do this:
  15.  
  16. inline void Hello( void )
  17. {
  18.    puts("Hello");
  19. }
  20.  
  21. void HelloFnc( void (*fnc)(void) )
  22. {
  23.    fnc();
  24. }
  25.  
  26. void main( void )
  27. {
  28.    HelloFnc( Hello );
  29. }
  30.