question on variable definitions

B

boa

Mark said:
That wasn't whet he said. And while you're at it, find a widely used
compiler that fully supports C99...

It's not a question about support levels, but about policies. Microsofts
policy is to ignore C99, other compiler vendors have implemented C99 in
various degrees.

It would be sad if clc regulars ignore C99 just to be able to support
Microsoft... (Yes, I have asbestos clothing, bring it on :))

Boa
 
F

Flash Gordon

boa wrote, On 03/03/07 07:25:
It's not a question about support levels, but about policies. Microsofts
policy is to ignore C99, other compiler vendors have implemented C99 in
various degrees.

As far as I can see TenDRA only mentions C90
http://www.ten15.org/docs/tdfc/ and I believe the same applues to
PacificC http://www.htsoft.com/products/PACIFICc.php

I've no idea how widely used they are.
It would be sad if clc regulars ignore C99 just to be able to support
Microsoft... (Yes, I have asbestos clothing, bring it on :))

I think that even the regulars that deliberately avoid using C99
specific features are not ignoring C99. If nothing else they try to
avoid doing things that are no longer legal in C99 ;-)
 
B

Bill Pursell

I vaguely remember that originally, variables needed to be defined all
at the start of the program.

No, no, no, no, and no. Originally, variables needed to be
**declared**
at the beginning of **a block**. In other words it has always been
legal
to do:

int main(int argc, char **argv)
{
int i;

... code that uses i
{
int j;
}
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top