Modular multiple dispatch with multiple inheritance

  • Authors:
  • Eric Allen;J. J. Hallett;Victor Luchangco;Sukyoung Ryu;Guy L. Steele, Jr.

  • Affiliations:
  • Sun Microsystems;Sun Microsystems;Sun Microsystems;Sun Microsystems;Sun Microsystems

  • Venue:
  • Proceedings of the 2007 ACM symposium on Applied computing
  • Year:
  • 2007

Quantified Score

Hi-index 0.02

Visualization

Abstract

Overloaded functions and methods with multiple dispatch are useful for extending the functionality of existing classes in an object-oriented language. However, such functions introduce the possibility of ambiguous calls that cannot be resolved at run time, and modular static checking that such ambiguity does not exist has proved elusive in the presence of multiple implementation inheritance. We present a core language for defining overloaded functions and methods that supports multiple dispatch and multiple inheritance, together with a set of restrictions on these definitions that can be statically and modularly checked. We have proved that these restrictions guarantee that no undefined nor ambiguous calls occur at run time, while still permitting various kinds of overloading.