Sujet : Re: ISO: The Eiffel OO programming language and IDE, on VMS
De : arne (at) *nospam* vajhoej.dk (Arne Vajhøj)
Groupes : comp.os.vmsDate : 28. Mar 2025, 02:57:12
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vs4vlo$1j7gm$1@dont-email.me>
References : 1 2 3
User-Agent : Mozilla Thunderbird
On 3/27/2025 9:28 PM, Lawrence D'Oliveiro wrote:
I see Eiffel allows multiple inheritance
<https://www.eiffel.org/doc/eiffel/I2E-_Inheritance>, but I haven’t yet
found any details of the method resolution order. Python does C3
linearization (invented by the Dylan folks), but as I recall both C++ and
Eiffel date from before that was invented.
C3 can be quite confusing.
I am pretty sure very few would have guessed the output
from this one:
$ type fun.py
class A:
def m(self):
print('Hi from A')
class B(A):
def test(self):
super().m()
class C(A):
def m(self):
print('Hi from C')
class D(B,C):
pass
o = D()
o.test()
$ python fun.py
Hi from C
Arne