From: ynnor@... Date: 2015-10-12T10:47:51+00:00 Subject: [ruby-core:71055] [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 Ronald Fischer. Benoit Daloze wrote: > Why not simply having `super` in M1 and M2 #initialize? > All constructors should call `super`, unless they just inherit from Object/BasicObject. 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. ---------------------------------------- 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-54424 * Author: Ronald Fischer * Status: Open * Priority: Normal * Assignee: ---------------------------------------- Consider a class ~~~ class C