From: Brian Candler Date: 2008-10-30T17:22:22+09:00 Subject: Re: Question about case statement and lambdas David A. Black wrote: > Expanding on Botp's point about options being changed: > > The problem is that if options is a Proc the first time you call the > lambda, it isn't the second time. It's still whatever got assigned to > it. And whilst at first glance it seems that 'options' is actually "just" a local method argument which drops out of scope when the method returns, it is of course bound into the environment of the lambda (i.e. the closure), and persists there. -- Posted via http://www.ruby-forum.com/.