Talk:Nested function

From Wikipedia, the free encyclopedia

[edit] C syntax

I was under the impression that the c language didn't support nested functions... Fresheneesz 21:01, 7 December 2006 (UTC)

I does not, but C syntax is only syntax, not the same as legal C code. I was contemplating the word "hypothetical" when i wrote it, but as there is at least one "C syntax programming language", the D language, supporting nested functions, that word would probably be somewhat misleading. /HenkeB 05:54, 24 December 2006 (UTC)

Actually I just tested minGW's gcc - and it does it fine. But when I tried compiling a c program (something.c) with dev c++, it gave me this error "in make_decl_rtl varasm.c: 752". Compiling it as a c++ program (something.cpp ), it refused the declaration entirely. Fresheneesz 21:25, 7 December 2006 (UTC)

To make things really confusing, the gnu c compiler (as you have discovered) actually supports nested functions even in C programs, but this is a non-standard language extension. /HenkeB 05:54, 24 December 2006 (UTC)

[edit] Formatting

I was under the impression that ==heading name== was the usual format for top-level headings, and the convention followed by most articles (as per WP:HEAD). Is this incorrect, or is this article just going against convention? If the latter, why? JoeKearney 20:19, 29 March 2007 (UTC)