From: keiju@... (Keiju ISHITSUKA) Date: 1999-07-28T16:45:21+09:00 Subject: [ruby-dev:7461] Re: [ruby-list:15672] Re: debugger exception handle (Re: Modified debug.rb) けいじゅ@日本ラショナルソフトウェアです. In [ruby-dev :7457 ] the message: "[ruby-dev:7457] Re: [ruby-list:15672] Re: debugger exception handle (Re: Modified debug.rb) ", on Jul/28 12:20(JST) Kazuhiro HIWADA writes: >ひわだです。 > >> >if c = Continuation.new >> >... >> > >> >c.call(false) >> > >> >というのは技術的には可能ですけど気持わるいですよね。 >> >> ですね. ムシズが走りますね(^^;;; > >大域脱出を考えないなら、 > >class Continuation ; def retry ; call(self) end end # とかして、 > >c = Continuation.new >... >c.retry if some_cond > >という使い方も、そうキモチ悪くないと思います。 最初に条件判断するのではなく, 後半で条件判断するんですね. これならOKですね. >そもそも cont.call(obj) >で obj が Continuation でないのがキモチわるいと思うので…。 ですね. >#使えるか(役に立つか)どうかは問題かも… ^^; うーん. while cond ... end と begin end until cond の違いみたいなものですね.. あまり関係ないですが, 私はあまり後者は使いま せん(^^;;; __ ..............................石塚 圭樹@日本ラショナルソフトウェア... ----------------------------------->> e-mail: keiju@rational.com <<---