From: "gcao (Guoliang Cao)" Date: 2012-03-29T23:54:49+09:00 Subject: [ruby-core:43868] [ruby-trunk - Feature #6224] Make variables in if/unless conditions available to conditional statements Issue #6224 has been updated by gcao (Guoliang Cao). I found this issue created 3 years ago. Matz explained the reason behind. http://bugs.ruby-lang.org/issues/1141 ---------------------------------------- Feature #6224: Make variables in if/unless conditions available to conditional statements https://bugs.ruby-lang.org/issues/6224#change-25374 Author: gcao (Guoliang Cao) Status: Open Priority: Normal Assignee: Category: core Target version: I propose to make below code work do_something(a) if a = condition Above code should work exactly same as if a = condition do_something(a) end If there is a reason behind why the first case does not work, please let me know. Thank you. Guoliang Cao -- http://bugs.ruby-lang.org/