Talk:Dynamic dispatch
From Wikipedia, the free encyclopedia
[edit] Merge with dynamic binding?
This article overlaps significantly with dynamic binding; maybe the two articles should be merged? -Andyabides 22:02, 19 Nov 2004 (UTC)
- I don't think so. Both are to do with how a bit of code is found for a given invokation, but they are different ideas. I'm not sure that the articles make it clear enough, but dynamic dispatch can occur through mechanisms like RPC (at least from an architecture perspective) and dynamic binding can also occur at load time through the choice of a given library (for example switching between DLLs). When looking at platforms/languages the two are seperate and a given platform may support one or the other, both or none. I'll have a think about adding something to the two articles about this. — KayEss | talk 11:02, 23 Apr 2005 (UTC)
[edit] Clarification in Single and multiple dispatch
For an uninformed reader, the section that explains how multiple dispatch can be achieved by inspecting the type of parameter y can be mistaken for method overloading. I feel that a statement to the effect of "Unlike method overloading, the type of the object y is known at runtime" could serve to clear the water. Moreover, I'd note that, with method overloading, the method to call is decided at compile time based on the declared type of the argument, as opposed to its runtime type. Viridium 16:23, 27 October 2007 (UTC)