Jump to content

Generic function

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 62.253.132.234 (talk) at 21:55, 3 March 2003 (new page). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

In certain systems for object-oriented programming such as the Common Lisp Object System and Dylan, an entity made up of all methods having the same name. Generic functions correspond roughly to what Smalltalk calls messages; but when a generic function is called, method dispatch occurs on the basis of all arguments, not just a single privileged one. See under multiple dispatch for more.