arXivDaily arXiv每日学术速递 周一至周五更新
arXiv cs/0005033cs.PL
收藏

一种具有类C++对象模型的语言中的多方法和单独的静态类型检查

Multimethods and separate static typechecking in a language with C++-like object model

Emanuele Panizzi, Bernardo Pastorelli

摘要:

本文的目的是描述和分析多方法实现的一种新的面向对象的,基于类的程序设计语言称为OOLANG。本文深入分析了多方法类型检查和选择的实现,分两个阶段进行,以允许静态类型检查和单独编译模块。第一阶段在编译时执行,而第二阶段在链接时执行,并且不需要模块的源代码。OOLANG的语法类似于C++;主要区别是没有指针和通过包容实现多态性。它采用C++对象模型,支持多重继承和虚拟基类。因此,有必要定义在执行多方法调用时重新调整参数和返回值地址的技术。

英文摘要:

The goal of this paper is the description and analysis of multimethod implementation in a new object-oriented, class-based programming language called OOLANG. The implementation of the multimethod typecheck and selection, deeply analyzed in the paper, is performed in two phases in order to allow static typechecking and separate compilation of modules. The first phase is performed at compile time, while the second is executed at link time and does not require the modules' source code. OOLANG has syntax similar to C++; the main differences are the absence of pointers and the realization of polymorphism through subsumption. It adopts the C++ object model and supports multiple inheritance as well as virtual base classes. For this reason, it has been necessary to define techniques for realigning argument and return value addresses when performing multimethod invocations.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑