From: Ryan Davis Date: 2010-04-24T06:08:31+09:00 Subject: [ruby-core:29772] Re: anonymous Module#name returns nil in 1.9 On Apr 20, 2010, at 19:50 , Ryan Davis wrote: > Is this intentional? OK. Well... no answer, so I get to make one up: This is a bug. I'd like to commit the following. It passes `make test` but I can't run `make test-all` because I run OSX and our tests are hostile on that platform. Patch: Index: variable.c =================================================================== --- variable.c (revision 27215) +++ variable.c (working copy) @@ -182,7 +182,7 @@ VALUE path = classname(mod); if (!NIL_P(path)) return rb_str_dup(path); - return path; + return rb_str_new("", 0);; } VALUE