Mercurial > hg > octave-max
diff src/pt-idx.cc @ 9445:c5f03874ea2a
simplify symbol_table::find and associated functions
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Wed, 22 Jul 2009 11:41:41 +0200 |
parents | 67fc970dad7d |
children | 126b49caba0d |
line wrap: on
line diff
--- a/src/pt-idx.cc +++ b/src/pt-idx.cc @@ -296,8 +296,12 @@ if (n > 0) { string_vector anm = *(arg_nm.begin ()); + have_args = true; + first_args = al -> convert_to_const_vector (); + first_args.stash_name_tags (anm); - first_expr_val = id->do_lookup (al, anm, first_args, have_args); + if (! error_state) + first_expr_val = id->do_lookup (first_args); } } }