Topic: this" is a non-lvalue?
Author: msalters <Michiel.Salters@logicacmg.com>
Date: Sat, 19 Mar 2005 00:49:16 +0000 (UTC) Raw View
Llewelly wrote:
> thedl0-usenet1@yahoo.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 ]
Author: Pete Becker <petebecker@acm.org>
Date: Sat, 19 Mar 2005 16:23:09 +0000 (UTC) Raw View
msalters wrote:
>
> 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 ]