Methods to support multimethod function overloading with compile-time type checking
Abstract
Methods and related apparatus, for use in programming language systems, are set forth which support compile-time type checking for overloaded functions in an environment supporting subtypes with multiple inheritance. At both compile and runtime, the invention considers the type of all actual arguments of a function to select a proper function instance to execute. Furthermore, the methods contemplated by the invention identify at compile time the set of function instances which might be invoked due to subtype substitutions for the actual arguments. Since type errors on function invocations or variable assignments are usually indicative of a programming error, program reliability can be improved and faults that would otherwise result in runtime errors can be corrected through the use of the invention prior to program deployment.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 14 · Forward citations: 73.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method, to be practiced at compile time by a data handling system that supports multimethod function selection on typed data, including subtypes with multiple inheritance, for enabling static-type checking to be performed at run time for overloaded functions, wherein said system includes (i) a set of type definitions, including specification of subtype relationships, (ii) function definitions referring to at least one of the type definitions, each function definition including a definition of arguments, including an argument order and argument positions, and (iii) precedence rules which, in
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 73 total)
References Cited — Backward Prior Art (14)
Non-Patent Literature (5)
- Beaven, A Functional Language with Classes, 1991, pp. 364 370. Conference Date: 18 20 Oct. 1989.
- Beaven, A Functional Language with Classes, 1991, pp. 364-370. Conference Date: 18-20 Oct. 1989.
- L cluse et al., Manipulation of Structured Values in Object Oriented Databases, 1989, The Whole Document.
- Lafore, R., The Waite Group s C Programming Using Turbo C , 1990, pp. 667 669.
- Lafore, R., The Waite Group's C Programming Using Turbo C++, 1990, pp. 667-669.