From: david carlton <carlton@math.stanford.edu>
To: Kevin Buettner <kevinb@redhat.com>
Cc: Andrew Cagney <ac131313@ges.redhat.com>,
Michael Snyder <msnyder@redhat.com>,
Daniel Jacobowitz <drow@mvista.com>,
Joel Brobecker <brobecker@gnat.com>,
gdb-patches@sources.redhat.com
Cc: carlton@math.stanford.edu
Subject: Re: Question regarding bizarre ','
Date: Tue, 06 Aug 2002 16:44:00 -0000 [thread overview]
Message-ID: <15696.24423.155082.756394@jackfruit.Stanford.EDU> (raw)
In-Reply-To: <1020806231458.ZM32372@localhost.localdomain>
On Tue, 6 Aug 2002 16:14:58 -0700, Kevin Buettner <kevinb@redhat.com> said:
> I am unable to find anything in Harbison and Steele which indicates
> that a trailing comma is acceptable in an array initializer. (They
> don't seem to mention it one way or another.)
K&R (second edition, of course) section A8.7 says:
The initializer is preceded by =, and is either an expression, or a
list of initializers nested in braces. A list may end with a comma,
a nicety for neat formatting.
It seems to be talking about a general enough context to include
arrays and structs, though it's not _entirely_ clear to me; the second
example on the top of p. 220 is an array with an extra comma at the
end.
David Carlton
carlton@math.stanford.edu
prev parent reply other threads:[~2002-08-06 23:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-05 18:21 Joel Brobecker
2002-08-05 18:26 ` Daniel Jacobowitz
2002-08-05 18:39 ` Michael Snyder
2002-08-05 19:20 ` Andrew Cagney
2002-08-06 16:15 ` Kevin Buettner
2002-08-06 16:44 ` david carlton [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=15696.24423.155082.756394@jackfruit.Stanford.EDU \
--to=carlton@math.stanford.edu \
--cc=ac131313@ges.redhat.com \
--cc=brobecker@gnat.com \
--cc=drow@mvista.com \
--cc=gdb-patches@sources.redhat.com \
--cc=kevinb@redhat.com \
--cc=msnyder@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox