Invention Grant
- Patent Title: Flow-based scoping
-
Application No.: US15947432Application Date: 2018-04-06
-
Publication No.: US10310827B2Publication Date: 2019-06-04
- Inventor: Gavin Mark Bierman , Brian Goetz , Guy Steele
- Applicant: Oracle International Corporation
- Applicant Address: US CA Redwood Shores
- Assignee: Oracle International Corporation
- Current Assignee: Oracle International Corporation
- Current Assignee Address: US CA Redwood Shores
- Agency: Invoke
- Main IPC: G06F9/44
- IPC: G06F9/44 ; G06F8/41 ; G06F8/33 ; G06F8/20 ; G06F11/36

Abstract:
Techniques for flow-based scoping are disclosed. A first code segment in a sequence of same-level code segments encapsulates a first lower-level lexical scope. The first lower-level scope is inclusive of scoping provided for the sequence of same-level code segments. The first code segment comprises a condition and an uninitialized variable. If executed, the first code segment causes the condition to be evaluated. If the condition is satisfied, the uninitialized variable is initialized and made available only within the first lower-level lexical scope. If a second code segment (a) references the uninitialized variable and (b) is in the sequence of same-level code segments or in a second lower-level lexical scope outside of the first lower-level lexical scope, an error message is presented indicating that the uninitialized variable is out of scope for the second code segment.
Public/Granted literature
- US20180293058A1 FLOW-BASED SCOPING Public/Granted day:2018-10-11
Information query