|
From: | Rik |
Subject: | [Octave-bug-tracker] [bug #54028] copy of non-handle class instance is not deep |
Date: | Fri, 29 Jun 2018 16:16:15 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Follow-up Comment #3, bug #54028 (project octave): This may be specific to arrays of objects. I used this modified script ver = version() bi = b(); bi.a_array = [-1]; bi.a_array(end+1) = pi; % make copy of bi to bi_copy bi_copy = bi; % change first element of object array in copy bi_copy.a_array(1) = 2; % report first element of object array in original bi.a_array(1) And running it produces, ver = 4.4.0 ans = -1 _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?54028> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |