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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: I have no idea why this will not compile. Date: Mon, 2 May 2016 09:36:58 +0200 Organization: A noiseless patient Spider Message-ID: References: Reply-To: nonlegitur@futureapps.de Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 2 May 2016 07:33:29 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="95e4a45ceb1a2eaada2898689338101a"; logging-data="1601"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/VS4yXaeXgnDUZZ9c3kBYfKirpuWoyTrM=" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 In-Reply-To: Cancel-Lock: sha1:c+5Rk/0Zi++kVR651BLs5bO17TE= Xref: news.eternal-september.org comp.lang.ada:30334 Date: 2016-05-02T09:36:58+02:00 List-Id: On 01.05.16 23:52, John Smith wrote: > The hope was that I could keep everything inside of the object and open/close > the file once (the closing would be done in the destructor.) I'll need to read > up on Ada pointers to better understand what I'm getting myself into. Just for completeness, the tie does not need to become manifest as a component. It could be a call, or it could be a message sent when the Logger_State object is initialized, or finalized. When the program becomes multithreaded, a question will be whether multiple loggers should write to multiple files, too. If they should write to the same file, then this requirement together with a File_Type component mean that proper serialization of calls needs to be added to Logger_State in addition.