H.J. Lu wrote:
On Tue, Feb 17, 2009 at 9:55 AM, Arnaud Charlet <char...@adacore.com> wrote:
Is it intended that the GCC C compiler support nested functions?
Yes, it's an extension provided by GNU C, not part of ISO C.


Although nested functions should be avoided for portability,
but sometimes nested functions are very useful for low level
codes. Glibc is another project which depends on nested
functions.

And BTW, the Ada front end *heavily* relies on the back end capability
of supporting nested functions (I assume the same is true of the Pascal
front end).

Note that nested functions are particularly useful where you want the
effect of global variables, without the thread-unsafety that comes from
real globals.



Reply via email to