Category : Modula II Source Code
Archive   : FM2DOC31.ZIP
Filename : PEOPLE.MOD
FROM Strings IMPORT CompareStr, Assign;
CLASS Person; (* a class implementation *)
PROCEDURE isMale() :BOOLEAN;
BEGIN
RETURN sex = male;
END isMale;
INIT
name := "";
sex := unknown;
END Person;
CLASS Programmer; (* a class implementation *)
PROCEDURE isSmart() :BOOLEAN;
BEGIN
RETURN CompareStr(favoriteLanguage,"Modula-2") = 0;
END isSmart;
INIT
favoriteLanguage := "?";
END Programmer;
CLASS Vendor; (* a local class declaration *)
INHERIT Programmer;
BusinessAddress : ARRAY [0..40] OF CHAR;
PROCEDURE GetAddress (VAR Address : ARRAY OF CHAR);
BEGIN
Assign(BusinessAddress, Address)
END GetAddress;
INIT
BusinessAddress := "PO Box 867403, Plano, Texas"
END Vendor;
END People.
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/