changeset 6539:bfb71a842496

[project @ 2007-04-18 19:45:17 by jwe]
author jwe
date Wed, 18 Apr 2007 19:45:17 +0000
parents e3a7611430a8
children 9dcfc78da664
files src/ChangeLog src/pt-id.cc
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Wed Apr 18 18:30:18 2007 +0000
+++ b/src/ChangeLog	Wed Apr 18 19:45:17 2007 +0000
@@ -1,3 +1,8 @@
+2007-04-18  John W. Eaton  <jwe@octave.org>
+
+	* pt-id.cc (tree_identifier::do_lookup): Don't call lookup if
+	symbol is a variable.
+
 2007-04-16  Geordie McBain  <geordie.mcbain@aeromech.usyd.edu.au>
 
 	* ov-fcn-inline.cc (Fargnames): Doc fix.
--- a/src/pt-id.cc	Wed Apr 18 18:30:18 2007 +0000
+++ b/src/pt-id.cc	Wed Apr 18 19:45:17 2007 +0000
@@ -107,7 +107,10 @@
 {
   static octave_value foo;
 
-  script_file_executed = lookup (sym, exec_script);
+  if (sym && sym->is_variable ())
+    script_file_executed = false;
+  else
+    script_file_executed = lookup (sym, exec_script);
 
   return script_file_executed ? foo : sym->def ();
 }