Mercurial > octave-nkf
diff src/pt-arg-list.cc @ 7767:71f068b22fcc
scope and context fixes for function handles
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 07 May 2008 13:45:30 -0400 |
parents | 7c020c067a60 |
children | 2b2ca62f8ab6 |
line wrap: on
line diff
--- a/src/pt-arg-list.cc Tue May 06 13:39:55 2008 -0400 +++ b/src/pt-arg-list.cc Wed May 07 13:45:30 2008 -0400 @@ -253,7 +253,8 @@ } tree_argument_list * -tree_argument_list::dup (symbol_table::scope_id scope) +tree_argument_list::dup (symbol_table::scope_id scope, + symbol_table::context_id context) { tree_argument_list *new_list = new tree_argument_list (); @@ -264,7 +265,7 @@ { tree_expression *elt = *p; - new_list->append (elt ? elt->dup (scope) : 0); + new_list->append (elt ? elt->dup (scope, context) : 0); } return new_list;