From: cldwalker Date: 2009-07-24T15:35:05+09:00 Subject: Re: thoughts on rewriting irb? On Jul 23, 9:47 pm, Joel VanderWerf wrote: > ghorner wrote: > >   begin puts "=> #{eval(input).inspect}"; rescue Exception; puts > > Do you want > > eval(input, b) > > where b is a Binding that was constructed before the loop? Otherwise, > how will this support local vars? Joel, not sure I follow. In mini-irb this works: >> b = 2 => 2 >> 'b' * b => "bb" As does placing local variables before the loop being picked up by eval. Could you elaborate? Gabriel