Skip to main content

Questions tagged [dispatch]

Filter by
Sorted by
Tagged with
1 vote
2 answers
646 views

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 ...
Patrick Wright's user avatar
0 votes
1 answer
365 views

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"} } ...
M. Sharpe's user avatar
10 votes
5 answers
51k views

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 ...
Roman Susi's user avatar
  • 1,803
3 votes
1 answer
1k views

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 ...
Alexey's user avatar
  • 277
2 votes
1 answer
6k views

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 ...
Aviv Cohn's user avatar
  • 21.6k