Map
Index
Random
Help
th

Quote: explicit, multi-method invocation in C++ by double dispatch; choose the most specialized branch; e.g., visitor pattern

QuoteRef: bettL5_2006 , p. 584



Topic:
object-oriented methods

Quotation Skeleton

C++ syntax is extended by adding a new … [p. 585] multi-method ::= branches name branches endbranches … Intuitively, all branches of a multi-method m constitute … definition [on the branch's parameter types]. … there are two forms of expression for multi-method … exp->m_DB(t) is a new construct using _DB as … when m_DB is invoked, the method executed is … choose the most specialized branch according to the … [p. 589] With our linguistic extension, the programmer can … [the corresponding] accept methods. … [p. 593] the double dispatch is indeed implemented by … [p. 604] It is quite unusual to have to …   Google-1   Google-2

Copyright clearance needed for quotation.


Related Topics up

Topic: object-oriented methods (42 items)

Copyright © 2002-2008 by C. Bradford Barber. All rights reserved.
Thesa is a trademark of C. Bradford Barber.