Contents | Index | < Browse | Browse >

2.7.  Global Variables

     There are a number	of global  variables  available	 for
definition  and	 use  by  the  ADL  programmer.	 A global is
represented by a sixteen-bit ID	and  may  hold	any  integer
value from -32768 to 32767.  These values may be interpreted
as simple numbers, String IDs, Routine IDs, Object IDs,	Verb
IDs,  etc.  depending  upon  how they are used.	 The globals
named Verb, Conj, Numd,	Dobj, Prep, and	Iobj are predeclared
by  ADL	 and  at  run-time contain the values of the current
Verb, Conjunction, Number of Direct Objects, Direct  Object,
Preposition, and Indirect Object, respectively.

     The ADL programmer	may declare a block of global  vari-
ables  for use as an array or list of things.  See Chapter 5
for more information.