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

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!news.mentorg.com!dgrammel!dgrammel
  3. From: dgrammel@dgrammel.mentorg.com (Dave Grammel)
  4. Subject: Re: & of inline functions
  5. Sender: news@news.mentorg.com (News User)
  6. Message-ID: <1992Dec15.233031.11712@news.mentorg.com>
  7. Date: Tue, 15 Dec 1992 23:30:31 GMT
  8. References:  <1992Dec13.185310.20140@math.ufl.edu>
  9. Nntp-Posting-Host: dgrammel.mentorg.com
  10. Organization: mentor
  11. Keywords: 
  12. Followup-To: 
  13. Lines: 28
  14.  
  15. In article <1992Dec13.185310.20140@math.ufl.edu>, x9999bvj@maple.circa.ufl.edu writes:
  16. |> 
  17. |> What is the official method for handling taking the address of an inline
  18. |> function?  For example, if you do this:
  19.  
  20. Don't make it inline.
  21.  
  22. |> 
  23. |> inline void Hello( void )
  24. |> {
  25. |>    puts("Hello");
  26. |> }
  27. |> 
  28. |> void HelloFnc( void (*fnc)(void) )
  29. |> {
  30. |>    fnc();
  31. |> }
  32. |> 
  33. |> void main( void )
  34. |> {
  35. |>    HelloFnc( Hello );
  36. |> }
  37.  
  38. -- 
  39. Dave Grammel                      ||   
  40. Mentor Graphics Corportation      ||   If it's not broke bad enough,   
  41. dave_grammel@mentorg.com          ||         don't fix it.
  42. (503) 685-7000                    ||
  43.