Sujet : Re: TeX and Pascal [was Re: The joy of FORTRAN]
De : commodorejohn (at) *nospam* gmail.com (John Ames)
Groupes : alt.folklore.computers comp.os.linux.miscDate : 01. Oct 2024, 15:57:24
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20241001075724.000071a2@gmail.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
User-Agent : Claws Mail 4.2.0 (GTK 3.24.38; x86_64-w64-mingw32)
On 1 Oct 2024 10:02:39 GMT
ram@zedat.fu-berlin.de (Stefan Ram) wrote:
Ah! I think this is called "polymorphism".
I wondered whether something like this could also be formulated in
Pascal.
Yes, you can do this in pretty much any functionally-complete language,
just as you can implement *any* algorithm; OOP languages are merely
intended (emphasis on *intended*) to make it natural and concise.