Top Up Prev Next Bottom Contents Index Search

3.3 Global information

The interpreter has a known list containing all the classes of stars and galaxies it currently knows about. New stars can be added to the known list at run time only by using the incremental linking facility, but this has restrictions (see the link command below). You can also make your own copy of the interpreter with your own stars linked in. Galaxies, however, are easy to add to the known list (see the defgalaxy command below).

The interpreter also has a current galaxy. Normally, this is the most recently defined universe, or the most recent universe specified with the curuniverse command. During the execution of a defgalaxy command, which defines a galaxy, the current galaxy is set to be the galaxy being defined. After the closing curly brace of the defgalaxy command, the current galaxy is reset to the previous current universe.



Top Up Prev Next Bottom Contents Index Search

Copyright © 1990-1997, University of California. All rights reserved.