ruby-changes:23007
From: shugo <ko1@a...>
Date: Fri, 16 Mar 2012 14:29:04 +0900 (JST)
Subject: [ruby-changes:23007] shugo:r35056 (trunk): * vm_eval.c (rb_mod_module_eval): fix the documentation of
shugo 2012-03-16 14:28:55 +0900 (Fri, 16 Mar 2012) New Revision: 35056 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=35056 Log: * vm_eval.c (rb_mod_module_eval): fix the documentation of class_eval to mention constant lookup. [ruby-core:41718] [Bug #5777] Modified files: trunk/ChangeLog trunk/vm_eval.c Index: ChangeLog =================================================================== --- ChangeLog (revision 35055) +++ ChangeLog (revision 35056) @@ -1,3 +1,9 @@ +Fri Mar 16 14:27:11 2012 Shugo Maeda <shugo@r...> + + * vm_eval.c (rb_mod_module_eval): fix the documentation of + class_eval to mention constant lookup. [ruby-core:41718] + [Bug #5777] + Fri Mar 16 14:10:45 2012 Shugo Maeda <shugo@r...> * lib/net/imap.rb (initialize): raise Net::IMAP::Error when the Index: vm_eval.c =================================================================== --- vm_eval.c (revision 35055) +++ vm_eval.c (revision 35056) @@ -1379,10 +1379,11 @@ * mod.class_eval(string [, filename [, lineno]]) -> obj * mod.module_eval {|| block } -> obj * - * Evaluates the string or block in the context of _mod_. This can - * be used to add methods to a class. <code>module_eval</code> returns - * the result of evaluating its argument. The optional _filename_ - * and _lineno_ parameters set the text for error messages. + * Evaluates the string or block in the context of _mod_, except that when + * a block is given, constant lookup is not affected. This can be used to + * add methods to a class. <code>module_eval</code> returns the result of + * evaluating its argument. The optional _filename_ and _lineno_ parameters + * set the text for error messages. * * class Thing * end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/