Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #3313

Re: Mixed declarations and "code"

From Keith Thompson <kst-u@mib.org>
Newsgroups comp.lang.c
Subject Re: Mixed declarations and "code"
Date 2011-05-05 11:25 -0700
Organization None to speak of
Message-ID <lnsjstqa2c.fsf@nuthaus.mib.org> (permalink)
References <ln1v0drp9b.fsf@nuthaus.mib.org> <87hb99atz3.fsf@blp.benpfaff.org>

Show all headers | View raw


Ben Pfaff <blp@cs.stanford.edu> writes:
> Keith Thompson <kst-u@mib.org> writes:
>> 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.

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.

-- 
Keith Thompson (The_Other_Keith) kst-u@mib.org  <http://www.ghoti.net/~kst>
Nokia
"We must do something.  This is something.  Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Mixed declarations and "code" Keith Thompson <kst-u@mib.org> - 2011-05-05 11:11 -0700
  Re: Mixed declarations and "code" Ben Pfaff <blp@cs.stanford.edu> - 2011-05-05 11:21 -0700
    Re: Mixed declarations and "code" Keith Thompson <kst-u@mib.org> - 2011-05-05 11:25 -0700
      Re: Mixed declarations and "code" Uno <merrilljensen@q.com> - 2011-05-08 01:11 -0700

csiph-web