首页 | 本学科首页   官方微博 | 高级检索  
     

一种带约束的多态类型系统
引用本文:郑红军,张乃孝.一种带约束的多态类型系统[J].计算机学报,1999,22(4):343-350.
作者姓名:郑红军  张乃孝
作者单位:北京大学数学学院信息科学系,北京,100871
摘    要:本文讨论了一种带约束的多态类型系统,引入了约束类型,约束与全称量化的结合使得参数化多态函数的应用更安全,同时也为重工的表示和实现提供了一个新的途径,提高了类型表示的抽象度。本文讨论的类型系统具有两个不同层次的类型结构,约束的引入与肖去是不同层次上的操作,最后,本文人出了类型检查算法Wr,并证明了此算法中约束的可满足性是可判定的。

关 键 词:多态  约束类型  类型系统  类型检查
修稿时间:1996年11月28日

A POLYMORPHIC TYPE SYSTEM WITH CONSTRAINTS
ZHENG Hong-jun,ZHANG Nai-Xiao.A POLYMORPHIC TYPE SYSTEM WITH CONSTRAINTS[J].Chinese Journal of Computers,1999,22(4):343-350.
Authors:ZHENG Hong-jun  ZHANG Nai-Xiao
Abstract:This paper concentrates on a polymorphic type system with constraints based on constrained types. By Incorporating constraints into universal quantification, the system can make applications of parametrically polymorphic function more safe. The constrained types provide a new way for expressing and implementing overloading. The Incorporating can improve the expressiveness of types. There are two layers with different type structures in the type system given in this paper. Introduction and elimination of constraints are in the different levels. It is proved that the satisfiability of constraints in W, which is a type checking algorithm proposed in the paper,is decidable.
Keywords:Polymorphism  constrained type  type system  type checking
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号