From: gabriele renzi Date: 2004-06-08T18:38:42+09:00 Subject: Re: Implementing interface using classes (Re: Interfaces and semantics) il Tue, 8 Jun 2004 17:47:08 +0900, David Garamond ha scritto:: >Let's say I want to implement interfaces using classes (so I can do >interface checking with the simple Object#kind_of?). There will be >components (which will also be classes). A component can implement one >or more interfaces. Method names from different interfaces might clash >(e.g. IFoo#quack vs IBar#quack) and we need to be able to choose which >interface we want to use from a component. > take a look at PyProtocols, http://peak.telecommunity.com/PyProtocols.html may be of interest to you. Imo, it's a complex solution to a complex problem, I'd prefer less general and easyer.