From: Charles Oliver Nutter Date: 2012-11-05T13:29:27+09:00 Subject: [ruby-core:48874] Re: [ruby-trunk - Feature #4085] Refinements and nested methods On Sun, Nov 4, 2012 at 8:50 PM, shugo (Shugo Maeda) wrote: > Such an anonymous module may be reused in a_matsuda's cases, but method caching may be a worse problem. In the current implementation, using invalidates the global method cache and module_eval invokes using internally, which means that the global method cache is invalidated for each call of module_eval. Unless an implementation can be found that doesn't do this, I don't see how the module_eval feature can be supported. It seems totally unreasonable to me that the global method cache would be invalidated in this way.