From: eregontp@... Date: 2015-10-12T12:54:55+00:00 Subject: [ruby-core:71060] [Ruby trunk - Feature #11550] Current behaviour of super(...) is dangerous in the presence of more than one included modules. Issue #11550 has been updated by Benoit Daloze. Ronald Fischer wrote: > First, M1 and M2 don't know where they are going to be mixed in, so they can not invoke `suuper` - they don't know what parameters are being passed. > > Second, the class which mixes in M1 and M2 needs to initialize two modules, which is not possible with the current language. Would ~~~ module M1 def initialize(*) super end end ~~~ work for your use case? Then the whole hierarchy can be initialized by just calling super. ---------------------------------------- Feature #11550: Current behaviour of super(...) is dangerous in the presence of more than one included modules. https://bugs.ruby-lang.org/issues/11550#change-54427 * Author: Ronald Fischer * Status: Open * Priority: Normal * Assignee: ---------------------------------------- Consider a class ~~~ class C