discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: variable declaration


From: Jeff Teunissen
Subject: Re: variable declaration
Date: Sat, 19 Oct 2002 19:09:22 -0400

"Philippe C.D.Robert" wrote:

[snip]

> I just noticed that you can declare a variable at anyplace with the gcc
> shipped with Mac OS X 10.2, just as you can do it in C++ (and unlike in
> ANSI C). So you are allowed to do
> 
> {
>    blu();
> 
>    int bla;
> 
>    bli();
> }
> 
> Is this valid in gcc 3.2 as well? If not, what is the plan wrt this?

This is valid ISO standard C (as of the ratification of the C99 update),
but not yet valid ANSI C.

As such, gcc 3.x support this.

-- 
| Jeff Teunissen  -=-  Pres., Dusk To Dawn Computing  -=-  deek @ d2dc.net
| GPG: 1024D/9840105A   7102 808A 7733 C2F3 097B  161B 9222 DAB8 9840 105A
| Core developer, The QuakeForge Project        http://www.quakeforge.net/
| Specializing in Debian GNU/Linux              http://www.d2dc.net/~deek/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]