MesaLoadStateQuery.mesa
Copyright Ó 1991 by Xerox Corporation. All rights reserved.
Willie-s, January 25, 1991 5:13 pm PST
DIRECTORY
MesaLoadState USING [Program],
Rope USING [ROPE];
MesaLoadStateQuery: CEDAR DEFINITIONS
~ BEGIN
ProgramListFromName: PROC[
name: Rope.ROPE, optionalList: LIST OF MesaLoadState.Program ¬ NIL]
RETURNS[LIST OF MesaLoadState.Program];
returns a list of MesaLoadState.Program, whose first element is the asked for program or NIL if there is no such program; the rest of the list is the programs that were run earlier.
If optionalList is NIL, it uses the current internal list of Programs.
If the first Program on optionalList matches name, it is skipped.
One can use this routine to locate multiple instances of the same Program.
WARNING: DO NOT change the list you get - you will change the loadstate of the cedar world
END.