> Lett Bertram Scharpf <lists / bertram-scharpf.de>
> Aihe: Kernel#eval and class definition
> 
> Hi,
> 
> I try to understand more deeply what Ruby does.
> Why here is the first line forbidden, the second allowed?
> 
>     def f ; class C ; end ; end
>     def f ; eval "class C ; end", binding ; end
> 
> Thanks for your answers in advance.

I'm assuming you have something passed to the function that you need
the binding for? Are you getting an error? You may want to try to 
establish the binding before the eval call and see if that helps.

> Bertram

E