Hi,

At Tue, 29 Jul 2008 20:23:14 +0900,
Przemek Wrzos wrote in [ruby-talk:309468]:
> I think it would be nice to see something like the new class_exec and
> instance_exec methods for the Binding class so we don't have to go
> through string evals. Specifically a Binding#exec

I suspect it won't work as you expect.  At the time block is
parsed, where scope Binding refers is unknown, so you can't use
local variables of the binding from the block.

> Some introspective abilities would also be a bonus. The most obvious
> ones I can think of are: Binding#local_variables,
> Binding#local_variable_get

I guess it would be better to add those methods instead of
eval.

-- 
Nobu Nakada