首页> 外文会议>ACM symposium on Applied Computing >Matching ThisType to subtyping
【24h】

Matching ThisType to subtyping

机译:将thistype与亚型相匹配

获取原文

摘要

The notion of ThisType has been proposed to promote typesafe reuse of binary methods and recently extended to mutually recursive definitions. It is well-known, however, that ThisType does not match with subtyping well. In the current type systems, type safety is guaranteed by the sacrifice of subtyping, hence dynamic dispatch. In this paper, we propose two mechanisms, namely, nonheritable methods and local exactization to remedy the mismatch between ThisType and subtyping. We rigorously prove their safety by modeling them in a small calculus.
机译:已经提出了Zhistype的概念来促进二元方法的排序再利用,最近扩展到相互递归的定义。然而,它众所周知,该型与亚型井不匹配。在当前类型的系统中,亚型牺牲的牺牲保证了型安全性,因此动态调度。在本文中,我们提出了两种机制,即不合时宜的方法和局部约束,以弥补色彩与亚型之间的不匹配。我们严格地通过在小微积分中进行模拟来证明他们的安全性。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号