Metraipolis › archive › dc_f591d9f66e5d

Ad hoc polymorphism — Wikipedia (en)

Source
Wikipedia (en)
Original
https://en.wikipedia.org/wiki/Ad_hoc_polymorphism
License (as archived)
CC-BY-SA-4.0
Archived
2026-11-07T12:19:00.650Z
SHA-256 of the archived text
830058c86296559bf7a9a1a38cc41093aad497229ba1606e0db5d567909c84d5
Stable URL of this page
https://metraipolis.com/documento/dc_f591d9f66e5d

How to cite

Ad hoc polymorphism — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/Ad_hoc_polymorphism (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_f591d9f66e5d (Metraipolis archive dc_f591d9f66e5d, sha256 830058c86296559bf7a9a1a38cc41093aad497229ba1606e0db5d567909c84d5)
BibTeX
@misc{dcf591d9f66e5d,
  title = {Ad hoc polymorphism — Wikipedia (en)},
  howpublished = {Wikipedia (en)},
  url = {https://en.wikipedia.org/wiki/Ad_hoc_polymorphism},
  note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_f591d9f66e5d; sha256 830058c86296559bf7a9a1a38cc41093aad497229ba1606e0db5d567909c84d5},
  year = {2026}
}

Archived text

Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/Ad_hoc_polymorphism. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

In programming languages, ad hoc polymorphism is a kind of polymorphism in which polymorphic functions can be applied to arguments of different types, because a polymorphic function can denote a number of distinct and potentially heterogeneous implementations depending on the type of argument(s) to which it is applied. When applied to object-oriented or procedural concepts, it is also known as function overloading or operator overloading. The term ad hoc in this context is not intended to be pejorative; It refers simply to the fact that this type of polymorphism is not a fundamental feature of the type system. This is in contrast to parametric polymorphism, in which polymorphic functions are written without mention of any specific type, and can thus apply a single abstract implementation to any number of types in a transparent way. This classification was introduced by Christopher Strachey in 1967.

Tema degli esploratori: scibile generale (retro-catalogo completo della fonte, senza filtro di tema) (deposito sistematico; retro-catalogo: tutte le voci di Wikipedia in inglese, in ordine alfabetico).
Fonte: Wikipedia in inglese, voce «Ad hoc polymorphism» — https://en.wikipedia.org/wiki/Ad_hoc_polymorphism
Wikidata Q4678197: «applying polymorphic functions to arguments of different types» (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q4678197
Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/Ad_hoc_polymorphism?action=history).
Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza.
Estratto dell'introduzione non modificato nel contenuto; revisione 1379280851, consultata il 2026-11-07T12:14:50.214Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: 6d06460a61b59baca71ab5f30a6387aea921ef1c0e1d17ed98826a033495b3b8