From: Yusuke Endoh Date: 2010-03-26T00:43:43+09:00 Subject: [ruby-core:28995] [Feature #1303](Rejected) A name considered a local variable on RHS of an assignment that defines it Issue #1303 has been updated by Yusuke Endoh. Status changed from Open to Rejected Hi, 2009/3/19 Tomas Matousek : > the parser might "visit" RHS first and then define variables in LHS or the other way around. Both options are valid, prioritizing RHS might eliminate some confusion. Your proposal will break recursive proc. Consider: fact = proc do |n| if n <= 0 1 else n * fact[n - 1] #=> undefined local variable or method `fact' for main:Object (NameError) end end This is a significant incompatibility issue. So I reject this ticket. -- Yusuke ENDOH ---------------------------------------- http://redmine.ruby-lang.org/issues/show/1303 ---------------------------------------- http://redmine.ruby-lang.org