From: daz Date: 2003-10-13T00:53:06+09:00 Subject: Re: set_trace_func/Array#fetch error From: "ts" > >>>>> "d" == daz writes: > > d> val = list.fetch(key) {:return_nil} # <--- > d> return nil if val == :return_nil # <--- > > Well, if you don't like the original construct (return in {}), you must > know that you find it frequently with #callcc. Something like > > def tt > callcc {|cc| return cc} > # etc > end > > This is really valid. > > > Guy Decoux > > There's a clumsy way of doing it, too. def tt ret = nil # until the new block var rules arrive. callcc {|cc| ret = cc} # etc ret end But your point is made. It once worked, now it's broken. daz