首页    期刊浏览 2024年11月28日 星期四
登录注册

文章基本信息

  • 标题:Type Inference of Turbo Pascal
  • 本地全文:下载
  • 作者:Ole I. Hougaard ; Michael I. Schwartzbach ; Hosein Askari
  • 期刊名称:BRICS Report Series
  • 印刷版ISSN:0909-0878
  • 出版年度:1995
  • 卷号:2
  • 期号:8
  • 出版社:Aarhus University
  • 摘要:Type inference is generally thought of as being an exclusive property of the functional programming paradigm. We argue that such a feature may be of significant benefit for also standard imperative languages. We present a working tool (available by WWW) providing these benefits for a full version of Turbo Pascal. It has the form of a preprocessor that analyzes programs in which the type annotations are only partial or even absent. The resulting program has full type annotations, will be accepted by the standard Turbo Pascal compiler, and has polymorphic use of procedures resolved by means of code expansion. Keywords: imperative languages, type inference.
国家哲学社会科学文献中心版权所有