From: Daniel Schierbeck Date: 2005-10-19T01:31:58+09:00 Subject: Re: Duck-typing Bob Hutchison wrote: > > On Oct 18, 2005, at 10:51 AM, Daniel Schierbeck wrote: > >> Tell me if this is stupid. I'm sure there's a simpler and faster way >> to do this, but I'm interested in knowing whether the idea itself >> is... well, stupid. >> > > [snip] > >> Basically, when I call obj.quacks_like? Klass I ask if every public >> method defined in Klass is defined in obj as well. > > > No, not stupid. Why do you want to know that? Let's just say I have a history of proposing silly things :)