help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EIEIO: A question about interfaces


From: Stefan Monnier
Subject: Re: EIEIO: A question about interfaces
Date: Fri, 15 Jan 2021 11:21:42 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>> 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?

If you really might use all combinations, then maybe you should rather
look at `my-foo-interface` as a separate type where one of its fields might be
of type `my-1`, `my-2`, ...


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]