From: Luigi Ballabio Date: 2003-03-11T01:04:01+09:00 Subject: Re: [Swig-dev] Limited Support for Multiple Inheritance in SWIG/Ruby At 03:41 PM 3/10/03 +0000, lyle@knology.net wrote: >We'd like to be able to provide support for a kind of "limited" multiple >inheritance in SWIG's Ruby module. (snip) >The simplest solution so far seems to be to override Derived's >#method_missing method, something like this (pseudocode): > > class Derived > def method_missing(mth, *args) > for each base other than Base1 > see if this base can handle it > end > super # call Object#method_missing > end > end > >but I haven't tried to implement this yet. > >Can someone else point out the flaws in this, and/or suggest other >possibilities? Lyle, you surely thought of it already---I'm just wondering what the reason was for discarding the possibility. How about mixins? Bye, Luigi