Yukihiro Matsumoto wrote:
...
>  Clemens Hintze  writes:
> 
> |Sorry matz, but could you show me a simple example where such a 
construct is
> |necessary? I use Ruby now for several years, but I am sure I never had 
to
> |use that feature until today. I know it exists, but I really cannot 
remember
> |that I need it ... perhaps I have a wrong imagination, so I would like 
to
> |ask you for an example ...
> 
> Here's the simplest example:
> 
>   i = nil
>   ary.each{|i| break if condition(i)}
>   p i

OK, how about this for near laziness:

# cat block.rb
x = "Whatever will be will be, the future's a tautology, .... :-)"
(1..10).each{|i| (x = i; break) if (i == 4)}
p x 

# ruby block.rb
4

Conrad Schneiker
(This note is unofficial and subject to improvement without notice.)