diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-01-06 22:50:18 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-01-06 22:50:18 +0000 |
commit | e57ba0d6422f670d981ba548fbeabf378ae2394d (patch) | |
tree | 279718998fd76de13bd71d54d942dbe5958772d8 /eval.c | |
parent | 55a752d6f41c2e54eff4130c3f7f475d1b7b9b1d (diff) | |
download | ruby-e57ba0d6422f670d981ba548fbeabf378ae2394d.tar.gz ruby-e57ba0d6422f670d981ba548fbeabf378ae2394d.tar.xz ruby-e57ba0d6422f670d981ba548fbeabf378ae2394d.zip |
* eval.c (rb_f_local_variables): skip $_, $~ and flip states in
dynamic variables. [ruby-core:00681]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -6004,7 +6004,7 @@ rb_f_local_variables() vars = ruby_dyna_vars; while (vars) { - if (vars->id) { + if (vars->id && rb_is_local_id(vars->id)) { /* skip $_, $~ and flip states */ rb_ary_push(ary, rb_str_new2(rb_id2name(vars->id))); } vars = vars->next; |