Mercurial > octave
view test/bug-53027/globals53027.m @ 24982:c16ad80274c9 stable
improve previous fix for clear in nested scopes (bug #53027)
* symrec.h (symbol_record::unbind_fwd_rep): New arg, recurse.
(symbol_record::symbol_record_rep::unbind_fwd_rep): New arg, recurse.
If TRUE, recurse to find ultimate rep.
* symscope.cc (symbol_scope_rep::unbind_script_symbols): Don't recurse
when unbinding script symbols.
* symscope.h (symbol_record_rep::clear_varaible,
symbol_record_rep::clear_variable_pattern,
symbol_record_rep::clear_variable_regexp):
If scope is nested, check parent for symbols.
* test/bug-53027/globals53027.m, test/bug-53027/gtest53027.m:
New test scripts.
* test/bug-53027/ntest53027c.m: New test function.
* test/bug-53027/ntest53027b.m: Fix typo.
* test/bug-53027/bug-53027.tst: Update.
* test/bug-53027/module.mk: Update.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 22 Mar 2018 23:24:21 -0400 |
parents | |
children |