Category : Modula II Source Code
Archive   : M2TUTOR.ZIP
Filename : OPAQUETY.DEF

 
Output of file : OPAQUETY.DEF contained in archive : M2TUTOR.ZIP
(* Chapter 13 - Program 7 *)
DEFINITION MODULE OpaqueType;

EXPORT QUALIFIED BoxType, MakeBox, Volume, Area;

TYPE BoxType; (* Opaque type, defined in implementation module *)


(* This procedure creates and initializes a box *)
PROCEDURE MakeBox(Length, Width, Height : CARDINAL) : BoxType;


(* This procedure returns the volume of a box *)
PROCEDURE Volume(Box : BoxType) : CARDINAL;


(* This procedure returns the Area of a box *)
PROCEDURE Area(Box : BoxType) : CARDINAL;

END OpaqueType.


  3 Responses to “Category : Modula II Source Code
Archive   : M2TUTOR.ZIP
Filename : OPAQUETY.DEF

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. 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/