• Title of article

    Matching MyType to subtyping

  • Author/Authors

    Chieri Saito، نويسنده , , Atsushi Igarashi، نويسنده ,

  • Issue Information
    ماهنامه با شماره پیاپی سال 2013
  • Pages
    20
  • From page
    933
  • To page
    952
  • Abstract
    The notion of MyType has been proposed to promote type-safe reuse of binary methods and recently extended to mutually recursive definitions. It is well known, however, that MyType does not match with subtyping well. In current type systems, type safety is guaranteed at the expense of subtyping, and hence dynamic dispatch. In this article, we propose two mechanisms, namely, nonheritable methods and exactstatements to remedy the mismatch between MyType and subtyping. We rigorously prove their safety by modeling them in a small calculus.
  • Keywords
    Binary methods , subtyping , MyType , dynamic dispatch , Exact types
  • Journal title
    Science of Computer Programming
  • Serial Year
    2013
  • Journal title
    Science of Computer Programming
  • Record number

    1080367