ASVariableSets.mesa
Last Edited by: Arnon, November 19, 1987 9:13:30 am PST
A special public structure used for evaluation of variables. Implemented as a special kind of (i.e. a subclass of) a SetStructure.
DIRECTORY
Rope,
IO,
AlgebraClasses;
ASVariableSets: CEDAR DEFINITIONS
~ BEGIN OPEN Rope, AC: AlgebraClasses;
Operations
IsVariable: AC.UnaryPredicate;
check whether arg is a variable represented as an element of a SetStructure
VariableFromRope: AC.FromRopeOp;
Get a variable from a rope, create a SetStructure consisting of the set of that variable alone, and return the variable as an element of that structure.
11/87 - why do we need to create the SetStructure? Won't caller already be holding it?
Structure
VariableSets: AC.Object; -- public structure that has special $variable method for variable eval (see impl)
END.