>-----Original Message-----
>From: Patrick Cosmo [mailto:pco...@incognito.com] 
>
>>Yes you can, in modern variants of C.  Are you using an old compiler?
>
>I'm using Microsoft Visual Studio 2005, Version 8.
>
>You are correct, Microsoft does not have full support for C99, 
>which I believe is the C conformance spec that allows 
>mid-scope declarations.
>
>Microsoft will likely never support this, so if we want to 
>support MS compilers, we can't have mid-scope declarations in 
>C code (note that a previous email indicated this has already 
>been fixed in the source code).

Well, since I've never paid for any microsoft compiler (nor even used
one) I guess I can't complain too much, but ugh!  If they have features
available when compiling C++ code you'd think they'd be able to make it
work for C within 6 years (9 years if you consider vs2008).  oh well.

eric

Reply via email to