Hi,

In message "Re: [ ruby-Bugs-7502 ] Parse bug with if/unless/while/until modifiers"
    on Sun, 31 Dec 2006 01:41:05 +0900, <noreply / rubyforge.org> writes:

|Initial Comment:
|#i is undefined before this statement
|i if i=0
|-------------------------
|warning: found = in conditional, should be ==
|NameError: undefined local variable or method `i' for main:Object
|
|This bug occurs because i is used after i=0 but appears before it.

It's not a bug.  It's the feature.  Local variables are defined only
after the assignment.  This 'after' strictly means static appearance
order, not run-time execution order.  I have vague plan to address
this issue in the future, but anyway it's the feature right now.

							matz.