Re: _Complex_I
- From: Keith Thompson <kst-u@xxxxxxx>
- Date: Mon, 28 May 2007 16:22:55 -0700
Harald van Dijk <truedfx@xxxxxxxxx> writes:
[...]
Where does the C standard require that lvalues are converted to rvalues by
accessing the object?
The C standard doesn't use the term "rvalue" except in a footnote in
section 6.3.2.1:
What is sometimes called "rvalue" is in this International
Standard described as the "value of an expression".
So assuming that evaluating, say, an object name yields the value of
the object, it follows from the definition that the result is an
rvalue.
On the other hand, C99 6.5.1p2 says:
An identifier is a primary expression, provided it has been
declared as designating an object (in which case it is an lvalue)
or a function (in which case it is a function designator).
I don't see an explicit statement that the result is the value of the
object. It seems obvious; either it was considered too obvious to
bother stating, or I'm missing an explicit statement somewhere else.
--
Keith Thompson (The_Other_Keith) kst-u@xxxxxxx <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
.
- Follow-Ups:
- Re: _Complex_I
- From: Wojtek Lerch
- Re: _Complex_I
- References:
- _Complex_I
- From: Neil Booth
- Re: _Complex_I
- From: David R Tribble
- Re: _Complex_I
- From: Wojtek Lerch
- Re: _Complex_I
- From: Harald van Dijk
- Re: _Complex_I
- From: Wojtek Lerch
- Re: _Complex_I
- From: Harald van Dijk
- Re: _Complex_I
- From: Wojtek Lerch
- Re: _Complex_I
- From: James Dennett
- Re: _Complex_I
- From: Wojtek Lerch
- Re: _Complex_I
- From: Harald van Dijk
- _Complex_I
- Prev by Date: Re: _Complex_I
- Next by Date: Re: offsetof
- Previous by thread: Re: _Complex_I
- Next by thread: Re: _Complex_I
- Index(es):
Relevant Pages
|