|
|
|
|
|
by zozbot234
2321 days ago
|
|
> essentially means looking up the method name in a hash table, and then doing a dynamic function call on the resulting function pointer Well, you do need something very much like this if you want to support "openly extensible" classes in a backward- and forward-compatible way. Otherwise you end up with something like the C++ ABI hell where changing things around in a base class breaks every binary that links to earlier versions of that class. This is only a "poorly-performing" pattern inasmuch as the developer is not enabled to "opt out" of that extensibility when that's the sensible choice. |
|