From: gedb@... (Ged) Date: 2004-02-13T21:24:58+09:00 Subject: Re: return from yielded block Hi Ara, "Ara.T.Howard" wrote in message news:... [..] > the problem is that you can't 'return' from a block - so how is this done? > > -a I think the return is returning from the yielding procedure rather than the block, as the following demonstrates: def meth n block_meth do if n == 42 return 'forty-two' end end end def block_meth yield return "ask another question" end puts meth(42) puts meth(40)