Re: ISO: The Eiffel OO programming language and IDE, on VMS

Liste des GroupesRevenir à co vms 
Sujet : Re: ISO: The Eiffel OO programming language and IDE, on VMS
De : arne (at) *nospam* vajhoej.dk (Arne Vajhøj)
Groupes : comp.os.vms
Date : 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

Date Sujet#  Auteur
27 Mar 25 * Re: ISO: The Eiffel OO programming language and IDE, on VMS7John Reagan
28 Mar 25 +* Re: ISO: The Eiffel OO programming language and IDE, on VMS3Lawrence D'Oliveiro
28 Mar 25 i`* Re: ISO: The Eiffel OO programming language and IDE, on VMS2Arne Vajhøj
28 Mar 25 i `- Re: ISO: The Eiffel OO programming language and IDE, on VMS1Lawrence D'Oliveiro
28 Mar 25 `* Re: ISO: The Eiffel OO programming language and IDE, on VMS3Dan Cross
28 Mar 25  `* Re: ISO: The Eiffel OO programming language and IDE, on VMS2John Reagan
30 Mar 25   `- Re: ISO: The Eiffel OO programming language and IDE, on VMS1Dan Cross

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal