From: Roger Pack Date: 2009-07-12T12:28:07+09:00 Subject: Re: which project should I work on? > x = 0 > foo = lambda { x += 5 } > 5.times do > foo.call > end > > into something more like this: > > x = 25 > > Of course, that optimization only makes sense if no one's making changes > to > the Proc class, or to the scope in which that's run -- or maybe we're > actually > storing 'foo' deep in some object, where it probably won't be touched, > but it > might. Good point. If there aren't any class changes you'd think a number of optimizations would be possible. =r -- Posted via http://www.ruby-forum.com/.