A safe implementation of dynamic overloading in java-like languages

  • Authors:
  • Lorenzo Bettini;Sara Capecchi;Betti Venneri

  • Affiliations:
  • Dipartimento di Informatica, Università di Torino;Dipartimento di Informatica, Università di Torino;Dipartimento di Sistemi e Informatica, Università di Firenze

  • Venue:
  • FSEN'09 Proceedings of the Third IPM international conference on Fundamentals of Software Engineering
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

Abstract

We present a general technique for extending Java-like languages with dynamic overloading, where method selection depends on the dynamic type of the parameter, instead of just the receiver. To this aim we use a core Java-language enriched with encapsulated multi-methods and dynamic overloading. Then we define an algorithm which translates programs to standard Java code using only basic mechanisms of static overloading and dynamic binding. The translated programs are semantically equivalent to the original versions and preserve type safety.