Article View: comp.lang.modula2
Article #4724Re: MODULEs body
From: Randy Bush
Date: Fri, 24 Mar 1989 21:09
Date: Fri, 24 Mar 1989 21:09
14 lines
944 bytes
944 bytes
Almost all implementations of Modula-2 provide a library module which provides
a hook to register a termination procedure. The simplest example might be:
DEFINITION MODULE Termination;
EXPORT QUALIFIED RegisterTermProc;
PROCEDURE RegisterTermProc ( p : PROC );
(* p will be called at program termintation, normal or abnormal. if
more than one p is registered, they will be called in lifo order *)
END Termination.
--
{ mcvax!uunet!oresoft, tektronix!percival!qiclab } !m2xenix!randy Randy Bush
Technical Details
Message-ID:
<219@m2xenix.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!rutgers!bellcore!texbell!killer!rpp386!ditka!qiclab!m2xenix!randyShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!rutgers!bellcore!texbell!killer!rpp386!ditka!qiclab!m2xenix!randy From: randy@m2xenix.UUCP (Randy Bush) Newsgroups: comp.lang.modula2 Subject: Re: MODULEs body Message-ID: <219@m2xenix.UUCP> Date: 24 Mar 89 21:09:09 GMT Reply-To: randy@m2xenix.UUCP (Randy Bush) Organization: Oregon Software, Portland Oregon US Lines: 14