On 12-Apr-2001 Andre Poenitz wrote:
>> Well you're right we do an assignment too much! I commented out the asignment
>> in Clone() as it is already done in the new() call! Thanks for pointing me to
>> this! I also tried to optimize the new() call for clone a bit.
> 
> Just my two cents:
> 
> Clone() _always_ should look like
> 
>       SomeThing * SomeThing::Clone() const
>       {
>               return new SomeThing(*this);
>       }
> 
> and everything else should be handled by the copy constructor.

Well it does now look like that, thought I don't know what's the copy
constructor (there was a warning from Lars about this cc but I asked him
for explications and didn't understand them so I just left it asis :)

      Jürgen

--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen Vigna        E-Mail:  [EMAIL PROTECTED]
Italienallee 13/N       Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen           Web:     http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Mistakes are often the stepping stones to utter failure.

Reply via email to