From: Trans Date: 2005-09-06T07:41:27+09:00 Subject: Re: Change Binding of a Proc Trans wrote: > Now that seemed like a really smart solution --but when I try it I get > some really STRANGE behavior. In my code @start is assign to one of the > procs, so then: > > s = @start > p s > p s.call > p machine.instance_eval{ s } > p machine.instance_eval{ s.call } > p machine.instance_eval{ s.call.call.call } > > returns > > # > # > # > # > # er... irb(main):001:0> start = 10 => 10 irb(main):002:0> start = lambda { start } => # irb(main):003:0> start.call => #