octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #33064] Object does not seem to be cloned


From: Rik
Subject: [Octave-bug-tracker] [bug #33064] Object does not seem to be cloned
Date: Tue, 28 Feb 2012 01:14:38 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2

Update of bug #33064 (project octave):

                  Status:                    None => Invalid                
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #1:

This is not a bug.   The '=' operator implements only a shallow copy.  If you
want to implement a deep copy (or clone) you need to write the code for it
into the class itself.  The Matlab documentation has multiple articles on
this.  See http://www.mathworks.com/help/techdoc/matlab_prog/brtm8si.html as
well as this one for a solution
http://www.mathworks.com/matlabcentral/fileexchange/22965-clone-handle-object-using-matlab-oop

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?33064>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]