From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d8a4797a79f9c90f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-27 08:59:37 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.vmunix.org!news-FFM2.ecrc.net!news.iks-jena.de!not-for-mail From: Lutz Donnerhacke Newsgroups: comp.lang.ada Subject: Re: I/O - exception handling Date: Tue, 27 May 2003 15:59:37 +0000 (UTC) Organization: IKS GmbH Jena Message-ID: References: NNTP-Posting-Host: taranis.iks-jena.de X-Trace: branwen.iks-jena.de 1054051177 30211 217.17.192.37 (27 May 2003 15:59:37 GMT) X-Complaints-To: usenet@iks-jena.de NNTP-Posting-Date: Tue, 27 May 2003 15:59:37 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:37843 Date: 2003-05-27T15:59:37+00:00 List-Id: * Preben Randhol wrote: > Lutz Donnerhacke wrote: >> IMHO the most Ada Style solution is: > >> procedure t is >> filename : aliased String := "test.txt"; > > Just curious, why do you make it an aliased String? Because I need an access from. >> type Auto_Close_File (name : access String) is >> new Ada.Finalization.Limited_Controlled with record >> file : File_Type; >> open : Boolean := False; >> end record; > > [...] > >> procedure Initialize(a : in out Auto_Close_File) is >> begin >> Open(a.file, In_File, a.name.all); > > This a.name where does this come from? >From the type Auto_Close_File. The constraint is named.