On Mon, Mar 14, 2005 at 02:57:36PM +0100, Andreas Schwab wrote:
> Marc Espie <[EMAIL PROTECTED]> writes:
> 
> > On Mon, Mar 14, 2005 at 01:25:34PM +0000, Joseph S. Myers wrote:
> >> On Mon, 14 Mar 2005, Robert Dewar wrote:
> >> 
> >> > I have certainly seen it used, but you may well be right that it is
> >> > seldom used. It is certainly reasonable to consider removing this
> >> > extension from C and C++. Anyone using that feature? Or know anyone
> >> > who is.
> >
> >> Nested functions are used in the glibc dynamic linker.  I'm not sure why, 
> >> and they may be inline nested functions whose addresses are never taken.
> >
> >> The extension is not present in GNU C++, only in GNU C.
> >
> > Well, Andreas Schwab seems to think this is no longer the case.
> 
> Actually glibc still uses nested functions, but does not take the address
> of those being left.  The only reason that nested functions are still
> being used is that it allows for easier code reuse.
> 

If we want to remove nested functions from glibc and keep code reuse,
I can try to provide a patch.


H.J.

Reply via email to