comparison src/ChangeLog @ 8906:ab87d08d9a1b

improve symbol inheritance for anonymous functions
author John W. Eaton <jwe@octave.org>
date Tue, 03 Mar 2009 14:10:54 -0500
parents 24dd61b36591
children 5a956c026b6c
comparison
equal deleted inserted replaced
8905:24dd61b36591 8906:ab87d08d9a1b
1 2009-03-03 John W. Eaton <jwe@octave.org> 1 2009-03-03 John W. Eaton <jwe@octave.org>
2
3 * symtab.h (symbol_table::do_inherit): Only inherit values for
4 symbols from the donor_scope that already exist in the table.
5 (symbol_table::symbol_record::symbol_record_rep::dup): Now const.
6 (symbol_table::symbol_record::operator=): Decrement rep->count and
7 maybe delete rep.
8 (symbol_table::fcn_info::operator=): Likewise.
9
10 * pt-fcn-handle.cc: (tree_anon_fcn_handle::dup): Transform
11 tree_anon_fcn_handle objects to tree_constant objects containing
12 octave_fcn_handle objects. New tests.
2 13
3 * pt-assign.cc (tree_simple_assignment::rvalue1): Assign result of 14 * pt-assign.cc (tree_simple_assignment::rvalue1): Assign result of
4 call to rhs->rvalue1() to an octave_value object, not an 15 call to rhs->rvalue1() to an octave_value object, not an
5 octave_value_list object. 16 octave_value_list object.
6 17