1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* parse.y (gettable_gen): warns if VCALL name is used as

out-of-scope block local variable.  [EXPERIMENTAL]

* parse.y (opt_bv_decl): add explicit block local variable
  declaration.  raises error for name conflicts.  [EXPERIMENTAL]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2005-03-09 09:29:52 +00:00
parent 9ef561b6e0
commit f43cae2b05
8 changed files with 265 additions and 37 deletions

View file

@ -1664,8 +1664,8 @@ else
pack('expand'=>'yes', 'fill'=>'both', 'padx'=>1, 'pady'=>1)
v.command(proc{|*args| c.yview(*args)})
h.command(proc{|*args| c.xview(*args)})
v.command(proc{|*args| f.yview(*args)})
h.command(proc{|*args| f.xview(*args)})
}
end

View file

@ -1664,8 +1664,8 @@ else
pack('expand'=>'yes', 'fill'=>'both', 'padx'=>1, 'pady'=>1)
v.command(proc{|*args| c.yview(*args)})
h.command(proc{|*args| c.xview(*args)})
v.command(proc{|*args| f.yview(*args)})
h.command(proc{|*args| f.xview(*args)})
}
end