This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Volatile MEMs in statement expressions and functions inlined as trees


Linus Torvalds <torvalds@transmeta.com> writes:

| On 14 Dec 2001, Gabriel Dos Reis wrote:
| >
| > The C++ definition is pretty clear about a return value of class-type:
| > it is an rvalue.
| 
| I'm saying that that is an arbitrary decision, not a "lack of potential".
| You _could_ imagine a language where a class member was always a lvalue.

Certainly I could imagine, and I do.  But here we're talking of C++,
not an imaginary language.

[...]

| Simple example: you claim that you can create a lvalue out of an rvalue.

Not at all: You made a specific claim, I said it was wrong.  Period.

| But I'll give you that some rvalues can be _promoted_ to lvalues.

There is no such rules C++.  You're inventing here.

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]