Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] how come this is allowed?

Date2008-01-09 19:53
Fromvictor
SubjectRe: [Cs-dev] how come this is allowed?
yes, I know that nested functions are allowed in
other languages, but I had never seen them in C.
I didn't think they were ANSI C either (even C99),
but as I never bothered to check the spec, I didn't
know for sure.

Victor


----- Original Message ----- 
From: "Erik de Castro Lopo" 
To: 
Sent: Wednesday, January 09, 2008 7:11 PM
Subject: Re: [Cs-dev] how come this is allowed?


> Victor Lazzarini wrote:
>
>> But is this C99 or just gcc being naughty?
>
> Nested functions are allowed in many languages such as Pascal,
> Modula2, Ada, Ocaml (my favourite) and Standard ML.
>
> This however is a GNU C extention. Nested functions are not part
> of any ISO C standard. See:
>
>    http://gcc.gnu.org/onlinedocs/gcc/Nested-Functions.html
>
> Erik
> -- 
> -----------------------------------------------------------------
> Erik de Castro Lopo
> -----------------------------------------------------------------
> "C++ is like jamming a helicopter inside a Miata and expecting
> some sort of improvement." -- Drew Olbrich
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel 


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net