From: Rodrigo Rosenfeld Rosas Date: 2012-07-25T03:15:28+09:00 Subject: [ruby-core:46736] Re: [ruby-trunk - Feature #4840] Allow returning from require Em 24-07-2012 12:05, alexeymuranov (Alexey Muranov) escreveu: > Issue #4840 has been updated by alexeymuranov (Alexey Muranov). > > > =begin > I propose the following behavior for `__end__` method when it is used in a block: > > [1, 2].each do |n| > __end__ > puts n > end > puts 3 > > Output: > > 1 > 2 > > So i propose that (({__end__})) does not affect the control flow, and affect directly the source by saying something like "insert EOF after the last processed line". > =end This sounds really weird to me but I'm not against it since I can't see myself writing code like this ever.