From: Yukihiro Matsumoto Date: 2010-09-09T00:06:28+09:00 Subject: [ruby-core:32148] Re: Ruby 2.0 Wiki/Wish-list? Hi, In message "Re: [ruby-core:32145] Re: Ruby 2.0 Wiki/Wish-list?" on Wed, 8 Sep 2010 23:44:00 +0900, "Haase, Konstantin" writes: |Module#prepend (but there is a ticket for that, if I remember correctly): I am positive about prepending a module. It will be addressed on Ruby 2.0 in whatever form. |And the other one is proper module propagation: | | module Extension | def foo | 42 | end | end | | Enumerable.send(:include, Extension) | Array.new.foo # => 42 | |The latter being not yet the case is rather confusing and not correctly fixable from within Ruby. This one is quite difficult to solve without huge cost. If we add subclass / submodule reference as JRuby does, this one can be solved but I hesitate to add costly weak references. |@matz: At Euruko you mentioned something aboute 'scoped monkey patches' and I was told you |made some Traits proposal at the dev meeting at RubyKaigi but I was unable to find infos on that. |Maybe it will solve this issues. Here's my latest slides from the RubyKaigi conference 2 weeks ago. http://www.rubyist.net/~matz/a/rubykaigi2010.pdf The idea described in the slides is not fixed, but it would be good food for thought. matz.