Mercurial > hg > octave-nkf
diff src/variables.cc @ 5436:2ed5009be503
[project @ 2005-09-02 01:54:38 by jwe]
author | jwe |
---|---|
date | Fri, 02 Sep 2005 01:54:38 +0000 |
parents | b12c0f920da0 |
children | 009606303874 |
line wrap: on
line diff
--- 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 ();