Patent US5551040A successfully refreshed from Google Patents.
← Back to Patent Explorer
US5551040A Expired / Lapsed US ⏱️ 0.0 years remaining

Methods and apparatus for specifying the contexts of names in callback-style programming

Assignee: Nokia of America Corp
•
Filing: 1995-01-09
•
Granted: 1996-08-27
•
Expires: 2015-01-09
📄 Original PDF 🌐 Google Patents 🔄 Sync Now

Abstract

Abstract Apparatus and methods for specifying contexts for machine-executable instructions. Modern graphical user interface systems employ the callback programming style. In this style, a system event handler responds to an event by executing application-level callback code and providing event information concerning the event as part of the context of the execution. The technique disclosed herein uses callback information names to specify the relationship between the event information and the execution context. The callback information names are defined globally, but represent the event information for a single execution of the callback code. Using the callback information names, it is possible to define the callback code in the function which adds the callback code to the graphical user interface system.

Inventors

  • 👤 Charles D. Blewett

Bibliographic Details

Application Number —
Jurisdiction US
Data Source google_patents
Last Synchronized 2026-11-03 15:18
CPC Classifications
G; G06; G06F; G06F9/00; G06F9/06; G06F9/46; G06F9/48; G06F9/4806; G06F9/4812; G06F9/44; G06F9/448; G06F9/4482; G06F9/4484

Claims Analysis

Total Claims: 12
Claim 1
Independent Claim 188 words
Code generation apparatus used in a computer system to generate machine-executable instructions, the code generation apparatus including at least a text written in a programming language, the text including a definition of a function, and means for generating the machine-executable instructions from the text, the code generation apparatus having the improvement comprising: in the text, a name which has global scope in the text and specifies a value which is separately instantiated for each execution of the function and a use specification which specifies how the name is used in an execution of the function; and in the means for generating the machine-executable instructions, means responsive to the name for making a definition thereof which indicates that the name has global scope and specifies a value which is separately instantiated for each execution of the function; and means responsive to the definition and to the use specification for generating the machine-executable instructions for the function such that when the function is executed, a separate instance of the value represented by the name is created and that instance is used in the execution as specified by the use specification.
Claim 2
Dependent Claim 188 words
Code generation apparatus used in a computer system to generate machine-executable instructions, the code generation apparatus including at least a text written in a programming language, the text including a definition of a function, and means for generating the machine-executable instructions from the text, the code generation apparatus having the improvement comprising: in the text, a name which has global scope in the text and specifies a value which is separately instantiated for each execution of the function and a use specification which specifies how the name is used in an execution of the function; and in the means for generating the machine-executable instructions, means responsive to the name for making a definition thereof which indicates that the name has global scope and specifies a value which is separately instantiated for each execution of the function; and means responsive to the definition and to the use specification for generating the machine-executable instructions for the function such that when the function is executed, a separate instance of the value represented by the name is created and that instance is used in the execution as specified by the use specification.
Claim 3
Dependent Claim 24 words
The apparatus set forth in claim 1 wherein: the instructions are callback code; and the name represents an actual argument for the callback code.
Claim 4
Dependent Claim 57 words
The apparatus set forth in claim 2 wherein: there is a plurality of callback codes which are specified in a list thereof; and there is an operation for adding a callback code to the list thereof; and the use specification is part of a specification of the operation for adding the callback code to the list thereof.
Claim 5
Independent Claim 21 words
The apparatus set forth in any of claims 1, 2, or 3 wherein: the means for generating instructions is a compiler.
Claim 6
Independent Claim 21 words
The apparatus set forth in any of claims 1, 2, or 3 wherein: the means for generating instructions is an interpreter.
Claim 7
Independent Claim 163 words
A method used in a computer system to generate machine-executable instructions from a text, the text being written in a programming language, defining at least a function, and including a name which has global scope in the text and specifies a value which is separately instantiated for each execution of the function and a use specification which specifies how the name is used in an execution of the function and the method comprising the steps performed in the computer system of: responding to the name by making a definition thereof which indicates that the name has global scope and specifies a value which is separately instantiated for each execution of the function; and responding to the definition and to the use specification by generating the machine-executable instructions for the function such that when the function is executed, a separate instance of the value represented by the name is created and that instance is used in the execution as specified by the use specification.
Claim 8
Independent Claim 163 words
A method used in a computer system to generate machine-executable instructions from a text, the text being written in a programming language, defining at least a function, and including a name which has global scope in the text and specifies a value which is separately instantiated for each execution of the function and a use specification which specifies how the name is used in an execution of the function and the method comprising the steps performed in the computer system of: responding to the name by making a definition thereof which indicates that the name has global scope and specifies a value which is separately instantiated for each execution of the function; and responding to the definition and to the use specification by generating the machine-executable instructions for the function such that when the function is executed, a separate instance of the value represented by the name is created and that instance is used in the execution as specified by the use specification.
Claim 9
Dependent Claim 38 words
The method set forth in claim 6 wherein: the instructions are callback code; and the step of making a use specification specifies how the name is to be used to represent an actual argument for the callback code.
Claim 10
Dependent Claim 61 words
The method set forth in claim 7 wherein: there is a plurality of callback codes which are specified in a list thereof; and there is operation for adding a callback code to the list thereof; and the step of specifying a use is done as part of a specification of the operation for adding the callback code to the list thereof.
Claim 11
Independent Claim 20 words
The method set forth in any of claims 6, 7, or 8 wherein: the method is practiced in a compiler.
Claim 12
Independent Claim 20 words
The apparatus set forth in any of claims 6, 7 or 8 wherein: the method is practiced in an interpreter.

USPTO Annuity & Maintenance Windows

Annuity Stage Window Opens Payment Deadline Surcharge Period Until Estimated Fee Status
3.5 Years (Year 4) 1999-08-27 2000-02-26 2000-08-27 $2000.00 Window Closed / Lapsed
7.5 Years (Year 8) 2003-08-27 2004-02-26 2004-08-27 $3760.00 Window Closed / Lapsed
11.5 Years (Year 12) 2007-08-27 2008-02-26 2008-08-27 $7700.00 Window Closed / Lapsed

Assigned Categories & Tags

No categories assigned to this patent yet.

Assign Category Tag