Hostname: page-component-89b8bd64d-x2lbr Total loading time: 0 Render date: 2026-05-10T00:01:24.680Z Has data issue: false hasContentIssue false

Principal signatures for higher-order program modules

Published online by Cambridge University Press:  07 November 2008

Mads Tofte
Affiliation:
Department of Computer Science, University of Copenhagen, Denmark
Rights & Permissions [Opens in a new window]

Abstract

Core share and HTML view are not available for this content. However, as you have access to this content, a full PDF is available via the 'Save PDF' action button.

In this paper we present a language for programming with higher-order modules. The language HML is based on Standard ML in that it provides structures, signatures and functors. In HML, functors can be declared inside structures and specified inside signatures; this is not possible in Standard ML. We present an operational semantics for the static semantics of HML signature expressions, with particular emphasis on the handling of sharing. As a justification for the semantics, we prove a theorem about the existence of principal signatures. This result is closely related to the existence of principal type schemes for functional programming languages with polymorphism.

Information

Type
Research Article
Copyright
Copyright © Cambridge University Press 1994
Submit a response

Discussions

No Discussions have been published for this article.