Browse Prior Art Database

Multiple Context Dictionary Management

IP.com Disclosure Number: IPCOM000113224D
Original Publication Date: 1994-Jul-01
Included in the Prior Art Database: 2005-Mar-27
Document File: 2 page(s) / 30K

Publishing Venue

IBM

Related People

Coskun, N: AUTHOR [+2]

Abstract

Disclosed is a technique to provide multi-level scoping for the script action objects.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 100% of the total text.

Multiple Context Dictionary Management

      Disclosed is a technique to provide multi-level scoping for the
script action objects.

      The action objects for each reactive object shares a context
dictionary.  This context dictionary keeps the dynamic instance
variables that can be accessed from the script action objects located
in the corresponding reactive object.  This mechanism provides a
single level of scoping.  The following algorithm extends the model
to provide multi-level scoping.

      We reserve a key name for the special next scope context
dictionary.  Let us call this reserved name as "$NEXT".  The value of
"$NEXT" variable in each context dictionary points to another context
dictionary.  The application builder provides a default
initialization for this field.  (For example, $NEXT will point to the
context dictionary of the parent.)  The application builder also
provides a user interface for the user to change this value if it is
needed.  If there is a reference to a context variable called "x" in
one of the scripts, the "x" will be searched in the context
dictionary of the source object.  If it is found in this local
dictionary, the search stops.  Otherwise, it will searched in the
context dictionary pointed by "$NEXT" variable.  If "$NEXT" is null,
that means "x" is an unresolved variable(programming error).