Questions tagged [dispatch]
The dispatch tag has no summary.
9 questions
1
vote
2
answers
646
views
Message Dispatching: If, Visitor, or something else
I often write code to implement the dispatching and handling of "messages." My requirements are usually:
I should be able to add new types of messages AND/OR new types of handlers without ...
0
votes
1
answer
365
views
Type selection from a dispatcher table
I am trying to use a dispatch table to select a data type to cast something as and cannot figure out the syntax for this.
g_cast_table[] =
{
{'h', short int}
or
{'h', "short int"}
}
...
10
votes
5
answers
51k
views
Dynamic dispatch from a string (Python)
Lets assume I have a string for a class name (or part of a class name), and I have implementation somewhere. All I want, is to be able to get an instance of a class with the name in the variable.
For ...
3
votes
1
answer
1k
views
A real-world use case for triple dispatch [closed]
A few times in my career I've encountered design problems that couldn't be elegantly solved with single dispatch and required double dispatch (which I implemented using visitors). However, I've never ...
2
votes
1
answer
6k
views
Differences between Dynamic Dispatch and Dynamic Binding
I've been looking on Google for a clear diffrentiation with examples but couldn't find any.
I'm trying to understand the differences between Dynamic Dispatch and Dynamic Binding in Object Oriented ...