From: Arlen Cuss Date: 2012-11-03T20:56:51+09:00 Subject: Re: Support for multiple Inheritance by classes I think I can say "no" with a fair amount of confidence. Single-inheritance is considered a good thing (and MI has many pitfalls), too: http://www.artima.com/intv/tuesday2.html On Saturday, 3 November 2012 at 6:21 PM, Ross Konsolebox wrote: > Will Ruby ever support multiple inheritance through classes instead of > modules? This is good since it won't need modification of existing > classes, and/or converting them to modules or class-module pairs before > they are inherited by a new subclass with the use of include when we > reuse them. > > class StableClassA > puts :A > end > > class StableClassB > puts :B > end > > class Inheritor < A, B # won't work > puts :A > puts :B > end > > # To make things work: > > module StableModuleA > puts :A > end > > class StableClassA > include StableModuleA > end > > module StableModuleB > puts :B > end > > class StableClassB > include StableModuleB > end > > class Inheritor > include StableModuleA > include StableModuleB > puts :I > end > > -- > Posted via http://www.ruby-forum.com/.