changeset 5436:2ed5009be503

[project @ 2005-09-02 01:54:38 by jwe]
author jwe
date Fri, 02 Sep 2005 01:54:38 +0000
parents 66ad03c58880
children 009606303874
files src/ChangeLog src/variables.cc
diffstat 2 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
+2005-09-01  John W. Eaton  <jwe@octave.org>
+
+	* variables.cc (symbol_out_of_date): Don't check nested functions.
+
 2005-08-31  John W. Eaton  <jwe@octave.org>
 
 	* oct-map.cc (Octave_map::index): Don't crash if index list is empty.
--- a/src/variables.cc
+++ b/src/variables.cc
@@ -1008,7 +1008,12 @@
 
       octave_function *fcn = ans.function_value (true);
 
-      if (fcn)
+      // No need to check nested functions.  They can only be executed
+      // from within the parent function the contains them.  Parent
+      // and nested functions will be updated simultaneously when we
+      // check the parent.
+
+      if (fcn && ! fcn->is_nested_function ())
 	{
 	  std::string ff = fcn->fcn_file_name ();