i dont think that a c99 compliant compiler exists, so no, you cant.
and no, suns is just a hack like gcc.
Name:
Anonymous2008-05-08 20:44
Why would you use C99... when you could be using C++0x ?
Microsoft doesn't care about C99 since they don't have any competent C coders anyway. Don't expect things like mixed declarations and code to reach MS VS this century.
GCC is halfway there, but has just about stopped... Does anyone really care about the stuff that's left? Do you?
i dont. really, the gcc version of c, with all its magic, is the standard today. imho.
Name:
Anonymous2008-05-08 20:52
>>12
Because there's too much Sepple in those socks.
Name:
Anonymous2008-05-08 21:47
>>11
your compiler being shit doesn't mean i can't write my code based on the c99 standard.
>>12
c++0x is just a failed attempt to catch up to c90.
Does anyone really care about the stuff that's left? Do you?
i care about these that are left (according to http://gcc.gnu.org/c99status.html):
* cpp has limited support for multibyte character sets.
* Complex numbers support does not follow all the requirements of Annex G and multiplication and division have excess overflows both in constant folding and at runtime. GCC wrongly promotes both operands of an operation between complex and real values to a complex type. Complex numbers support has not been checked in detail against the requirements of the C99 standard.
* Some details of variable length arrays (VLAs) relating to when size expressions are evaluated and when the memory for VLAs is freed are not implemented, and other details are not checked against the requirements of the C99 standard.
>>19
Not really. I mean, they don't actually do a lot of variable-lengthy stuff, now do they? I suppose they could aid with run-time constraint checking and some minor allocation stuff..
Name:
Anonymous2008-05-10 20:33
In C++ and pre-C99 dialects of C, an array's dimension must be a constant integral expression so that its size can be calculated at compile-time. In C99 this rule was relaxed. Now an array's dimension must be an integral expression—not necessarily a constant one. This allows you to declare a variable-length array, which is an array whose dimension(s) are determined at runtime. Here is an example: void func(int dim)
{
int arr[dim]; // dim isn't a constant; C99 only
cout<< sizeof (arr) <<endl;
}
The arr may have different dimension in every func() call. For example: int main()
{
size_t elements;
cout<<"how many elements? "<<endl;
cin>> elements;
func(elements);
}
(I stumbled upon this EXPERT TROLL when googling for specifics. I hope you'll enjoy it as much as I did.)