A mechanism for flexible dynamic trait replacement

  • Authors:
  • Lorenzo Bettini;Sara Capecchi;Ferruccio Damiani

  • Affiliations:
  • Università di Torino, Torino, Italy;Università di Torino, Torino, Italy;Università di Torino, Torino, Italy

  • Venue:
  • Proceedings of the 11th International Workshop on Formal Techniques for Java-like Programs
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

Abstract

Dynamic trait replacement is a programming language feature for changing the objects' behavior at runtime by replacing some of the objects' methods. In previous work on dynamic trait replacement for JAVA-like languages, the object's methods that may be replaced must correspond exactly to a named trait used in the object's class definition. In this paper we propose the notion of replaceable: a programming language feature that decouples trait replacement operation code and class declaration code, thus making it possible refactoring classes and/or performing unanticipated trait replacement operations without invalidating existing code.