changeset 9608:1c76e806c2a7

possibly mutate after in-place computed assignment
author Jaroslav Hajek <highegg@gmail.com>
date Thu, 03 Sep 2009 08:51:45 +0200
parents 1be3c73ed7b5
children 599e92aaa4c0
files src/ChangeLog src/ov.cc
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Thu Sep 03 08:48:51 2009 +0200
+++ b/src/ChangeLog	Thu Sep 03 08:51:45 2009 +0200
@@ -1,3 +1,8 @@
+2009-09-03  Jaroslav Hajek  <highegg@gmail.com>
+
+	* ov.cc (octave_value::assign (assign_op, const octave_value&)):
+	Call maybe_mutate after in-place operation.
+
 2009-09-03  Jaroslav Hajek  <highegg@gmail.com>
 
 	* ov.cc (octave_value::do_non_const_unary_op): Split to
--- a/src/ov.cc	Thu Sep 03 08:48:51 2009 +0200
+++ b/src/ov.cc	Thu Sep 03 08:51:45 2009 +0200
@@ -1286,6 +1286,7 @@
 	  try
 	    {
 	      f (*rep, octave_value_list (), *rhs.rep);
+              maybe_mutate (); // Usually unnecessary, but may be needed (complex arrays).
 	    }
 	  catch (octave_execution_exception)
 	    {