C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: "this" is a non-lvalue?

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language, library and standards
View previous topic :: View next topic  
Author Message
msalters
Guest





PostPosted: Sat Mar 19, 2005 12:49 am    Post subject: Re: "this" is a non-lvalue? Reply with quote





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





PostPosted: Sat Mar 19, 2005 4:23 pm    Post subject: Re: "this" is a non-lvalue? Reply with quote




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
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language, library and standards All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.