Mercurial > hg > octave-terminal
changeset 155:d46c6323a190
[project @ 1993-10-13 19:13:29 by jwe]
(lookup_identifier): Don't bind global variables immediately in loops
or conditionals, even at the top level.
author | jwe |
---|---|
date | Wed, 13 Oct 1993 19:13:29 +0000 |
parents | 3a09d46139f1 |
children | 8dc079be9dc5 |
files | src/lex.l |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lex.l +++ b/src/lex.l @@ -1020,7 +1020,8 @@ return lsr; symbol_record *gsr = global_sym_tab->lookup (name, 0, 0); - if (curr_sym_tab == top_level_sym_tab && gsr != (symbol_record *) NULL) + if (curr_sym_tab == top_level_sym_tab && gsr != (symbol_record *) NULL + && ! (looping || iffing)) return gsr; return curr_sym_tab->lookup (name, 1, 0);