[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: EIEIO: A question about interfaces
From: |
Michael Heerdegen |
Subject: |
Re: EIEIO: A question about interfaces |
Date: |
Fri, 15 Jan 2021 12:30:03 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> In your example, that might mean you'd create a new class that inherits
> from both `my-1` and `my-foo-interface`.
But in the general case, when I have a hierarchy of N classes instead of
only one `my-1`, does that mean that I have to create a parallel
hierarchy of N classes? Is there a (builtin) way to avoid that kind of
duplication of definitions when I want to stick to the OO approach?
Regards,
Michael.