FILE: FuglemanClient.mesa
Last Edited by Mitchell, August 16, 1982 2:04 pm
DIRECTORY
Fugleman USING [Handle, NewFugleman, Check, SomeProc, FugleFailure];
FuglemanClient:
CEDAR PROGRAM
IMPORTS Fugles: Fugleman =
BEGIN
TestError: ERROR;
SimpleTest:
PROCEDURE =
BEGIN
a nonsense program to show how clients invoke operations on objects implemented this way
fm: Fugles.Handle = Fugles.NewFugleman[];
anotherFm: Fugles.Handle = Fugles.NewFugleman[];
x: INT ← 1;
fm.Check[ ! Fugles.FugleFailure => ERROR TestError]; -- check the object, convert error
IF fm=anotherFm THEN ERROR TestError; -- should get unique objects
IF fm.SomeProc[1] = anotherFm.SomeProc[2] THEN x𡤂
END;
SimpleTest[ ]; -- call the test procedure
END. -- FuglemanClient
CHANGE LOG