Mercurial > hg > octave-lyh
diff src/pt-mat.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 | 745a8299c2b5 |
children | 82be108cc558 |
line wrap: on
line diff
--- a/src/pt-mat.cc +++ b/src/pt-mat.cc @@ -951,7 +951,8 @@ } tree_expression * -tree_matrix::dup (symbol_table::scope_id scope) +tree_matrix::dup (symbol_table::scope_id scope, + symbol_table::context_id context) { tree_matrix *new_matrix = new tree_matrix (0, line (), column ()); @@ -959,7 +960,7 @@ { tree_argument_list *elt = *p; - new_matrix->append (elt ? elt->dup (scope) : 0); + new_matrix->append (elt ? elt->dup (scope, context) : 0); } new_matrix->copy_base (*this);