INDEX-BASED METHOD FOR SUPPORTING MULTIMETHOD FUNCTION OVERLOADING WITH COMPILE-TIME TYPE CHECKING AND RUN-TIME DISPATCH

Patent №

US 5,696,973

Granted

1997-12-09

Filed 1995

Owner

INTERNATIONAL BUSINESS MACHINES CORPORATION

AI components

2

planning · hardware

Assignment

Recorded

Dataset

AIPD

2023_r1 edition

Application

08390886

Programming language systems commonly allow for the use of function calls within a body of program source code. Since function names are generally descriptive, it is sometimes the case that two different functions ("function instances") will have the same name, and be distinguishable by having either a different number of arguments ("arity"), or arguments of different types. Both at compile time and at run time, the possibility of error exists if there is a mismatch between the arguments required by a function and the arguments provided to the function by the function call. Methods and related apparatus, for use in programming language systems, are set forth which support compile-time type checking and run-time dispatch for overloaded functions in an environment supporting subtypes with multiple inheritance. At both compile time and run time, the method of the invention takes into consideration the types of all arguments of a function call, to select a proper function instance to execute, for a given function invocation. In accordance with the invention, a precedence ordering is made from among multiple function instances having the same name and arity. 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 run-time errors can be corrected through the use of the invention prior to program deployment.

AI classification

AI hardware1.00
Planning0.94
Natural language0.19
Knowledge representation0.03
Machine learning0.01
Evolutionary computation0.00
Vision0.00
Speech0.00

Ownership

INTERNATIONAL BUSINESS MACHINES CORPORATION

assignment · 74660909

Assignors

AGRAWAL, RAKESH, DEMICHIEL, LINDA GAIL, LINDSAY, BRUCE GILBERT

On an employer assignment, the assignors are typically the inventors.

From the same owner

© 2026 NYSGPT2525 LLC