Object-Oriented Type Inference

Forfattere

  • Jens Palsberg
  • Michael I. Schwartzbach

DOI:

https://doi.org/10.7146/dpb.v20i345.6575

Resumé

We present a new approach to inferring types in untyped object-oriented programs with inheritance, assignments, and late binding. It guarantees that all messages are understood, annotates the program with type information, allows polymorphic methods, and can be used as the basis of an optimizing compiler. Types are finite sets of classes and subtyping is set inclusion. Using a trace graph, our algorithm constructs a set of conditional type constraints and computes the least solution by least fixed-point derivation.

Downloads

Publiceret

1991-03-01

Citation/Eksport

Palsberg, J., & Schwartzbach, M. I. (1991). Object-Oriented Type Inference. DAIMI Report Series, 20(345). https://doi.org/10.7146/dpb.v20i345.6575