Article View: comp.std.c++
Article #1390Re: C++ already *has* nested functions SO WHAT'S THE BEEF?
From: Harvey Reed
Date: Mon, 04 Jan 1993 19:31
Date: Mon, 04 Jan 1993 19:31
27 lines
1372 bytes
1372 bytes
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
Technical Details
Message-ID:
<harvey.726175866@regina>Path:
arc1-ca.pugleaf.net!sparky!uunet!opl.com!regina!harveyReferences:
<1992Dec21.080952.15309@netcom.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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