From: matz@... (Yukihiro Matsumoto) Date: 2004-04-02T10:45:37+09:00 Subject: Re: calling break in proc Hi, In message "Re: calling break in proc" on 04/04/02, Brad Hilton writes: |I found a simpler example that exposes this strange proc/break problem. The point is the break destination. |data_loader = proc { |hash| | p hash | break if hash['i'] == 5 |} |# this produces an error... |obj.fetch(&data_loader) The destination of a break in the data_loader is the continuation to the "proc", which is already passed through at the point of "obj.fetch". Use catch/throw for dynamic exit. matz.