MainComputersProgrammingLanguages › Multiple Dispatch: A New Approach Using Templates and RTTI

Multiple Dispatch: A New Approach Using Templates and RTTI

Edit Page
Report
Scan day: 16 February 2014 UTC
-82
Virus safety - good
Description: This article focuses on two new techniques based on templates and Run Time Type Identification (RTTI).
A new approach using templates and RTTI Published in C++ Report, June 1998. Virtual functions allow polymorphism on a single argument; however, sometimes there is a need for multi-argument polymorphism. Double dispatch, commonly used in C++ to implement multi-methods, does not lend easily extensible code. Solutions based on function tables are difficult to implement and prevent repeated derivation. This article focuses on two new techniques based on templates and Run Time Type Identification (RTTI). The first is faster but less flexible, the second is slower, but allows new classes to be added without any need to change existing ones.
Size: 642 chars

Contact Information

Email:
Phone&Fax:
Address:
Extended:

WEBSITE Info

Page title:Multiple Dispatch
Keywords:
Description:
IP-address:208.109.181.224

WHOIS Info

NS
Name Server: NS43.DOMAINCONTROL.COM
Name Server: NS44.DOMAINCONTROL.COM
WHOIS
Status: clientDeleteProhibited
Status: clientRenewProhibited
Status: clientTransferProhibited
Status: clientUpdateProhibited
Date
Creation Date: 01-jun-1999
Expiration Date: 01-jun-2014