From: botp Date: 2010-10-07T10:26:13+09:00 Subject: Re: Why does Module#include exclude the module's metaclass? On Thu, Oct 7, 2010 at 8:59 AM, John Mair wrote: > I asked why, when including a module, the singleton class is not also > included. Whereas when performing class inheritance the singleton IS > inherited. > I am just curious to the difference in behaviour; as I can't think of a > reason why module inclusion would work differently to class inheritance > :( single inheritance for class includes their singletons. single class inclusion easy to track. mixin is many modules inclusion. if ruby includes mods singletons, then it would not be different to multiple inheritance, no. difficult to track on dynamic lang. ..confusing as to design of ruby... matz has final say best regards -botp