面向对象逻辑语言LKO的类型系统
A TYPE SYSTEM FOR THE OBJECT ORIENTED LOGIC LANGUAGE LKO
-
摘要: 文中主要介绍面向对象逻辑语言LKO中基于声明和推理的有序类型系统.在谓词声明中,类型由有序的构子构造而成.子句中变量类型由类型推理决定.对象类型由方法声明决定,独立于继承,便于代码复用.它可作为基类型参与项类型构造.Abstract: The ordered type system based on type declaration and type inference is presented for the object oriented logic language LKO. The types in predicate declarations are built by ordered constructors, which results in natural subtyping relationship. The types of variables in clauses are inferred by the system. Objects are classified in terms of method declarations, so inheritance is independent of subtyping. As base types, classes may be applied in complex type construction.
下载: