From Modula-2 Reloaded

Wastebasket: Terminal

DEFINITION MODULE Terminal;

PROCEDURE Read (VAR theItem : <anyType>);
(* This is a macro that the compiler expands to TypeOf (theItem).Read (StdIO.StdInFile (), theItem) *)
(* Pre: theItem.Read is visible in the requesting scope *)
(* Post: theItem is read from the currently defined standard output file and assigned to theItem *)

PROCEDURE Write (theItem : <anyType>);
(* This is a macro that the compiler expands to TypeOf (theItem).Write (StdIO.StdOutFile (), theItem) *)
(* Pre: theItem.Write is visible in the requesting scope *)
(* Post: theItem is written to the currently defined standard output file *)

END Terminal.
Retrieved from http://modula-2.net/m2r10/pmwiki.php?n=Wastebasket.Terminal
Page last modified on 2010-05-24 12:30