Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Double dispatch
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Short description|Feature in programming languages}} {{Polymorphism}} In [[software engineering]], '''double dispatch''' is a special form of [[multiple dispatch]], and a mechanism that dispatches a function call to different concrete functions depending on the runtime types of two objects involved in the call. In most [[object-oriented]] systems, the concrete function that is called from a function call in the code depends on the dynamic type of a single object and therefore they are known as [[single dispatch]] calls, or simply [[virtual function]] calls. [[Dan Ingalls]] first described how to use double dispatching in [[Smalltalk]], calling it [[multiple polymorphism]].<ref>A Simple Technique for Handling Multiple Polymorphism. In Proceedings of [[OOPSLA]] '86, Object–Oriented Programming Systems, Languages and Applications, pages 347–349, November 1986. Printed as SIGPLAN Notices, 21(11). {{ISBN|0-89791-204-7}}</ref>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)