home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / std / cplus / 1965 < prev    next >
Encoding:
Internet Message Format  |  1993-01-04  |  1.3 KB

  1. Path: sparky!uunet!opl.com!regina!harvey
  2. From: harvey@opl.com (Harvey Reed)
  3. Newsgroups: comp.std.c++
  4. Subject: Re: C++ already *has* nested functions SO WHAT'S THE BEEF?
  5. Keywords: nested functions, dumb ideas
  6. Message-ID: <harvey.726175866@regina>
  7. Date: 4 Jan 93 19:31:06 GMT
  8. References: <1992Dec21.080952.15309@netcom.com>
  9. Sender: news@opl.com
  10. Lines: 27
  11.  
  12. rfg@netcom.com (Ronald F. Guilmette) writes:
  13.  
  14.  
  15. > ...
  16. >Well, it appears that some people have this mental model of "nested
  17. >functions" left over from the days when they programmed in Pascal, where
  18. >*anything* in a containing scope could be accessed directly.  Sadly, these
  19. >folks don't seem to "get" the fundamental idea which made C into the big
  20. > ...
  21.  
  22. I share your consternation over "block programming" and your concern
  23. of over "featurism" (your words).
  24.  
  25. If programmers want nested functions, it sounds a lot like delegation which
  26. C++ can handle quite well, as is. Just delegate to another object, or
  27. your self. This leaves matters fairly explicit.
  28.  
  29. I think a formal extension to add nested functions to C++ is not useful.
  30. The example you gave however was interesting!
  31.  
  32. (wringing my hands also),
  33.  
  34. -- 
  35. ++harvey
  36. ========================================================================
  37. internet:  harvey@opl.com  /  hreed@cs.ulowell.edu  /  h.reed@ieee.org
  38. voice:     617-965-0220
  39.