From: Bertram Scharpf Date: 2005-01-12T04:11:42+09:00 Subject: 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. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de