|
From: Julian S. <js...@ac...> - 2003-03-27 00:39:51
|
Oops! Now fixed. Thx. J On Thursday 27 March 2003 12:06 am, Tom Hughes wrote: > In message <104...@ix...> > > Jeremy Fitzhardinge <je...@go...> wrote: > > This isn't C, since you can't declare a variable in the middle of a > > block like that - though you can in C++. > > You can in C99. > > > gcc 3.2 on my RH8 box doesn't complain about this, but gcc 2.76 in RH7.2 > > does. > > Because gcc 3 understands at least some C99 extensions. > > > Looks like gcc 3.2 is treating C more like C++ code - or perhaps this > > became allowed in C9X. > > Exactly ;-) Of course it probably isn't wise to rely on such new > features yet. > > Tom |