From: "Douglas A. Gwyn" <DAGwyn@null.net>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] thread
Date: Mon, 9 Jul 2001 08:33:03 +0000 [thread overview]
Message-ID: <3B491B74.607DAB8D@null.net> (raw)
In-Reply-To: <200107061654.RAA07880@cthulhu.dircon.co.uk>
Digby Tarvin wrote:
> I was aware that the array type was special in that the application of
> the '&' operator to it resulted in a change of type but not of value.
? One cannot (meaningfully) apply & to a type, only to a certain kind
of expression. When that expression consists of an identifier that
has been declared as an object having array type, then in fact
&that_identifier is *not* treated specially, according to the C
standard, but rather follows the generic rules for the & operator.
What is special is the special rule that the unadorned identifier
decays, in most contexts, into a pointer to the first element of the
array designated by that identifier; this is closely connected with
arrays not being first-class objects in C. It is often convenient,
but is not natural.
next prev parent reply other threads:[~2001-07-09 8:33 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-06 5:55 dmr
2001-07-06 16:54 ` Digby Tarvin
2001-07-09 8:33 ` Douglas A. Gwyn [this message]
2001-07-09 11:46 ` Digby Tarvin
2001-07-09 17:03 ` Dan Cross
2001-07-09 11:49 ` Boyd Roberts
-- strict thread matches above, loose matches on Subject: below --
2001-07-06 4:15 arisawa
2001-07-06 14:41 ` Dan Cross
2001-07-06 18:24 ` Boyd Roberts
2001-07-06 1:02 rob pike
2001-07-06 0:50 arisawa
2001-07-06 2:05 ` Dan Cross
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=3B491B74.607DAB8D@null.net \
--to=dagwyn@null.net \
--cc=9fans@cse.psu.edu \
/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;
as well as URLs for NNTP newsgroup(s).