On Monday, September 30, 2002, at 11:19  PM, Michael G Schwern wrote:

> On Mon, Sep 30, 2002 at 06:04:28PM -0700, David Whipp wrote:
>> On a slightly different note, if we have interfaces then I'd really
>> like to follow the Eiffel model: features such as renaming methods
>> in the derived class may seem a bit strange; but they can be useful
>> if you have have name-conflicts with multiple inheritance.
>
> I'm not familiar with the Eiffel beyond "it's the DBC language and it's
> French", but wouldn't this simply be covered by aliasing?
Eiffel can either rename a "feature"(method, attribute), which is pretty 
much the same as aliasing as you might see it in Ruby, or you can 
redefine the method entirely.  Again, you also would see this in Ruby, 
which might be more approachable for those familiar with Perl.

class BAR
inherit FOO
        rename output as old_output
        end
end

or...

class BAR
inherit FOO
        redefine output
        end
end

Reply via email to