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.

Andreas.

-- 
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

Reply via email to