From: Paul Chardon <paul.chardon@avions.aerospatiale.fr>
To: Sergio Silva <silva@elet.polimi.it>
Subject: Re: Initialize - behaviour??
Date: 1996/11/28
Date: 1996-11-28T00:00:00+00:00 [thread overview]
Message-ID: <329D3BD7.2781E494@avions.aerospatiale.fr> (raw)
In-Reply-To: 329C601E.41C67EA6@elet.polimi.it
Hello,
When you use a limited controlled type, and if you want objects of this
type to be initialized automatically (respectively finalize) when they
become in scope, you must redefines the procedure Initialize
(respectively finalize), that is to say :
the follwoing initialize procedure:
procedure Initialize (Watcher_object : in out Watcher_Type_Logger)is
File_Name : String := "Logged.log";
I : Integer :=10;
begin
Create(File => Watcher_object.FileOne,
Mode => Out_File,
Name => File_Name(1..I));
exception when others => Put_Line("WATCHER initialize logger");
end Initialize;
and do the same for the procedure finalize. (See LRM 7.6 (2))
Is that your problem ? Hope so, Paul.
next prev parent reply other threads:[~1996-11-28 0:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-11-27 0:00 Initialize - behaviour?? Sergio Silva
1996-11-28 0:00 ` Paul Chardon [this message]
1996-11-28 0:00 ` Sergio Silva
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox