Mercurial > octave
changeset 26673:4271b53b24a6
when installing global variable don't warn if it is already global
* stack-frame.cc (stack_frame::install_varaible): If installing global
variable, skip checks on existence of global and local values if
variable is already global.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 04 Feb 2019 15:00:13 +0000 |
parents | 12b6065efa25 |
children | adc31fed37f5 |
files | libinterp/corefcn/stack-frame.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/stack-frame.cc Sun Feb 03 21:44:38 2019 -0800 +++ b/libinterp/corefcn/stack-frame.cc Mon Feb 04 15:00:13 2019 +0000 @@ -368,7 +368,7 @@ void stack_frame::install_variable (const symbol_record& sym, const octave_value& value, bool global) { - if (global) + if (global && ! is_global (sym)) { octave_value val = varval (sym);