Mercurial > hg > octave-lyh
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 +++ b/src/ChangeLog @@ -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 +++ b/src/pt-id.cc @@ -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 (); }