Re: About a small C++ program.

2000-05-13 Thread Moshe Zadka
On Sun, 14 May 2000, guy keren wrote: > > Although I was able to compile it without warnings I do not understand: > > 1) What is the meaning of the first (left most) const in > > const Integer operator+(const Integer& rv) ... ? > > it means that the '+' operator returns an 'r' value, not a

Re: About a small C++ program.

2000-05-13 Thread guy keren
On Sat, 13 May 2000, Shaul Karl wrote: > Consider the following C++ program: [program moved to the end of this letter] > Although I was able to compile it without warnings I do not understand: > 1) What is the meaning of the first (left most) const in > const Integer operator+(const Inte

About a small C++ program.

2000-05-13 Thread Shaul Karl
Consider the following C++ program: //: C12:OperatorOverloadingSyntax.cpp // From Thinking in C++, 2nd Edition // Available at http://www.BruceEckel.com // (c) Bruce Eckel 2000 // Copyright notice in Copyright.txt #include using namespace std; class Integer { int i; public: Integer(int ii)