CoreFunsImpl.mesa
Copyright © 1985 by Xerox Corporation. All rights reserved.
Barth, November 5, 1985 4:22:13 pm PST
DIRECTORY Core, CoreClasses, CoreFuns, Rope;
CoreOpsImpl: CEDAR PROGRAM
IMPORTS Rope
EXPORTS CoreFuns =
BEGIN
FIOCT, FindInstanceOfCellType: PUBLIC PROC [cellType: Core.CellType, name: Core.ROPE] RETURNS [CoreClasses.CellInstance ← NIL] = {
FOR i: CoreClasses.CellInstanceList ← NARROW[cellType.data, CoreClasses.RecordCellType].instances, i.rest UNTIL i=NIL DO
IF Rope.Equal[i.first.type.name, name] THEN RETURN[i.first];
ENDLOOP;
};
END.