 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
msalters Guest
|
Posted: Sat Mar 19, 2005 12:49 am Post subject: Re: "this" is a non-lvalue? |
|
|
Llewelly wrote:
| Quote: | thedl0-usenet1 (AT) yahoo (DOT) com (Daryle Walker) writes:
"this" is
described (sect. 9.3.2, para 1) as a non-lvalue expression. What
does
that mean? How is it different from a rvalue?
3.10/1
# Every expression is either an lvalue or an rvalue.
So, 'non-lvalue expression' is just a verbose equivalent of rvalue.
If
'this' is somehow not an rvalue, you've found a defect in the
standard. If 'this' is an rvalue, an editorial change 'non-lvalue
expression' => 'rvalue' is IMO needed.
'non-lvalue' occurs in only one other place in the C++2003 standard;
footnote 49, which refers to C usage.
|
IMHO it's something that's just editorial, but better to point that
out in csc++
Regards,
Michiel Salters
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html ]
|
|
| Back to top |
|
 |
Pete Becker Guest
|
Posted: Sat Mar 19, 2005 4:23 pm Post subject: Re: "this" is a non-lvalue? |
|
|
msalters wrote:
| Quote: |
IMHO it's something that's just editorial, but better to point that
out in csc++
|
Noted. Thanks.
--
Pete Becker
Dinkumware, Ltd. (http://www.dinkumware.com)
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html ]
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|