Mixed declarations and "code"

K

Keith Thompson

s5n <[email protected]> raised this point in comp.lang.c.moderated.

The C99 foreword, in the list of major changes between C90 and C99,
mentions "mixed declarations and code". The word "code" is ambiguous
and misleading. The standard doesn't provide a definition for it,
and there are several examples where the word "code" clearly refers
generally to any C source code, including statements, declarations,
and directives.

Suggestion: Change "mixed declarations and code" to "mixed
declarations and statements".
 
B

Ben Pfaff

Keith Thompson said:
The C99 foreword, in the list of major changes between C90 and C99,
mentions "mixed declarations and code". The word "code" is ambiguous
and misleading. The standard doesn't provide a definition for it,
and there are several examples where the word "code" clearly refers
generally to any C source code, including statements, declarations,
and directives.

Suggestion: Change "mixed declarations and code" to "mixed
declarations and statements".

I think that you're about 12 years late to suggest a change to
C99.
 
K

Keith Thompson

Ben Pfaff said:
I think that you're about 12 years late to suggest a change to
C99.

And I posted in the wrong newsgroup; I meant that to go to comp.std.c.

But presumably the next C standard will still include the list of major
changes from C90 to C99, in addition to a new list of changes from C99
to C201X. My suggestion (which I'll now re-post to the right place) is
to update that section in the next C standard.
 
U

Uno

And I posted in the wrong newsgroup; I meant that to go to comp.std.c.

But presumably the next C standard will still include the list of major
changes from C90 to C99, in addition to a new list of changes from C99
to C201X. My suggestion (which I'll now re-post to the right place) is
to update that section in the next C standard.

I compile a lot of "source," and I don't refer to it as "source code"
ever, as that is less descriptive than the former.

Statements comprise the business end of the source.
 

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,768
Messages
2,569,574
Members
45,049
Latest member
Allen00Reed

Latest Threads

Top