From: "David A. Black" Date: 2004-06-08T11:07:33+09:00 Subject: Re: How to ducktype a Hash? Hi -- On Tue, 8 Jun 2004, Richard Kilmer wrote: > On 6/7/04 7:37 PM, "Jim Weirich" wrote: > > >>>> Maybe: > >>>> > >>>> f['rich'] > >>>> f.[firstname] > >>>> > >>>> It's ugly enough to discourage its use, but it also calls > >>> to mind the > > > > I missed what this syntax (and the other proposals) is supposed to > > accomplish and the threading in this topic thread is wonky enough so > > that I can't find the parent messages. Could someone fill me in. > > The key is expressing that a method you are defining is semantically > equivalent to a method in another class/module. What happens if the method in the other class or module gets redefined, with new semantics? David -- David A. Black dblack@wobblini.net