Type Inference of Turbo Pascal
1995; Volume: 2; Issue: 8 Linguagem: Inglês
10.7146/brics.v2i8.19511
ISSN1601-5355
AutoresOle Ildsgaard Hougaard, Michael I. Schwartzbach, Hosein Askari,
Tópico(s)Parallel Computing and Optimization Techniques
Resumo<p>Type inference is generally thought of as being an exclusive property of<br />the functional programming paradigm. We argue that such a feature may be<br />of significant benefit for also standard imperative languages. We present a<br />working tool (available by WWW) providing these benefits for a full version<br />of Turbo Pascal. It has the form of a preprocessor that analyzes programs<br />in which the type annotations are only partial or even absent. The resulting<br />program has full type annotations, will be accepted by the standard Turbo<br />Pascal compiler, and has polymorphic use of procedures resolved by means<br />of code expansion.</p><p>Keywords: imperative languages, type inference.</p>
Referência(s)