From: Bertram Scharpf Date: 2005-01-12T19:36:44+09:00 Subject: Re: Kernel#eval and class definition Hi, Am Mittwoch, 12. Jan 2005, 18:43:42 +0900 schrieb Yukihiro Matsumoto: > In message "Re: Kernel#eval and class definition" > on Wed, 12 Jan 2005 18:26:23 +0900, "Robert Klemme" writes: > > |> def f ; class C ; end ; end > |> def f ; eval "class C ; end", binding ; end > | > |The ruby code in the string > |expression is not syntactically located in method f. > > class definition in the method is prohibited > by syntax just to detect errors. Ah, thank you both. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de