Article View: comp.std.c++
Article #1280Re: Nested functions (was: Re: Zero-length structures and pointer comparisons)
From: Harvey Reed
Date: Thu, 17 Dec 1992 16:31
Date: Thu, 17 Dec 1992 16:31
28 lines
1639 bytes
1639 bytes
nau@ssesco.com (William Nau) writes: >>> Why are nested functions so hard? I think that >>> Gnu C's implementation of nested functions shows that it does not >>> cause any particularly difficult implementation problems. >> [Koenig replied] >>The first time I tried to use gcc's nested functions, >>my program dumped core -- apparently due to a bug in gcc. >>The next version of gcc I tried worked. This suggests >>that the implementation isn't exactly trivial. >It suggests that they didn't properly test that release. Given >a decent design, it's not asking that much out of a high level >language. It does amaze me that this wonderful object oriented >language does not allow for nested functions. What can nested functions do that OO features of C++ can't? Use of nested functions sounds like you may be trying to delegate implementation, which is a great use for objects. -- ++harvey ======================================================================== internet: harvey@opl.com / hreed@cs.ulowell.edu / h.reed@ieee.org voice: 617-965-0220
Technical Details
Message-ID:
<harvey.724609916@baffin>Path:
arc1-ca.pugleaf.net!sparky!uunet!opl.com!baffin!harveyReferences:
<9234601.10277@mulga.cs.mu.OZ.AU> <1992Dec11.231131.10956@microsoft.com> <24392@alice.att.com> <1992Dec12.162211.5076@ucc.su.OZ.AU> <24400@alice.att.com> <9235019.15484@mulga.cs.mu.OZ.AU> <24413@alice.att.com> <BzBHn4.26J@ssesco.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!opl.com!baffin!harvey From: harvey@opl.com (Harvey Reed) Newsgroups: comp.std.c++ Subject: Re: Nested functions (was: Re: Zero-length structures and pointer comparisons) Message-ID: <harvey.724609916@baffin> Date: 17 Dec 92 16:31:56 GMT References: <9234601.10277@mulga.cs.mu.OZ.AU> <1992Dec11.231131.10956@microsoft.com> <24392@alice.att.com> <1992Dec12.162211.5076@ucc.su.OZ.AU> <24400@alice.att.com> <9235019.15484@mulga.cs.mu.OZ.AU> <24413@alice.att.com> <BzBHn4.26J@ssesco.com> Sender: news@opl.com Lines: 28