Issue #1303 has been updated by Yusuke Endoh.

Status changed from Open to Rejected

Hi,

2009/3/19 Tomas Matousek <redmine / ruby-lang.org>:
> 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 <mame / tsg.ne.jp>
----------------------------------------
http://redmine.ruby-lang.org/issues/show/1303

----------------------------------------
http://redmine.ruby-lang.org