From: Gavin Kistner Date: 2005-10-09T23:54:23+09:00 Subject: Re: using lambda/Proc can prevent a lot of garbage collection On Oct 9, 2005, at 8:26 AM, Eric Mahurin wrote: > 2. Proc#binding should give a binding that only has variables > that the block accesses (determined when the compiled). > > 3. Proc#binding should hold weak references to variables that > the block doesn't access (at compile-time). I believe that detecting references at compile time is tricky in a dynamic language. Is there not a way in Ruby to retrieve a local variable whose name is stored in another string? (Perhaps there isn't.