Mercurial > hg > octave-terminal
changeset 8064:4f1ebb704545
fix invalid scope use in assignin
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Tue, 26 Aug 2008 16:39:17 -0400 |
parents | 41bc700ff642 |
children | 6333da0dfdfd |
files | src/ChangeLog src/parse.y |
diffstat | 2 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2008-08-26 Jaroslav Hajek <highegg@gmail.com> + + * parse.y (Fassignin): Use default scope when calling varref. + 2008-08-26 Michael Goffioul <michael.goffioul@gmail.com> * genprops.awk (emit_declarations): Call updaters/listeners only when
--- a/src/parse.y +++ b/src/parse.y @@ -3977,8 +3977,6 @@ if (! error_state) { - symbol_table::scope_id scope = -1; - if (context == "caller") octave_call_stack::goto_caller_frame (); else if (context == "base") @@ -3995,7 +3993,7 @@ if (! error_state) { if (valid_identifier (nm)) - symbol_table::varref (nm, scope) = args(2); + symbol_table::varref (nm) = args(2); else error ("assignin: invalid variable name"); }