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