From: "trans. (T. Onoma)" Date: 2004-10-08T19:51:21+09:00 Subject: Re: Kernel#eval taking a block On Friday 08 October 2004 01:49 am, nobu.nokada@softhome.net wrote: | Hi, | | At Tue, 5 Oct 2004 03:51:20 +0900, | | trans. (T. Onoma) wrote in [ruby-talk:114847]: | > I see. So this kind of thing just can't happen I take it. (Hmm... I think | > we discussed this kind of thing on core once.) It would be nice if we | > could pass in locals to the binding: | > | > eval(tb, a) { |a| cool = a.call(cool) } | > | > It might also be nice if this could be done without "stepping on toes" | > (i.e. overwriting binding's locals). | | eval("proc{|cool|}", tb).call(a.call(eval("cool", tb))) What are you? (Note: if this statement doesn't cross the language barrier well, just know that it is a big compliment!) T.