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-Thread: 103376,e3ba37c5a979fdcb X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news3.google.com!news2.volia.net!news.germany.com!news.belwue.de!news.uni-stuttgart.de!carbon.eu.sun.com!btnet-feed5!btnet!news.btopenworld.com!not-for-mail From: Martin Dowie Newsgroups: comp.lang.ada Subject: Re: Ada.Text_IO.Create Date: Sun, 19 Feb 2006 08:14:58 +0000 (UTC) Organization: BT Openworld Message-ID: References: <1140218028.145204.141420@z14g2000cwz.googlegroups.com> <1140249851.389233.273980@g47g2000cwa.googlegroups.com> <1140297548.116832.212770@g43g2000cwa.googlegroups.com> <57OJf.45346$d5.201767@newsb.telia.net> NNTP-Posting-Host: host86-131-209-91.range86-131.btcentralplus.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: nwrdmz01.dmz.ncs.ea.ibs-infra.bt.com 1140336898 3275 86.131.209.91 (19 Feb 2006 08:14:58 GMT) X-Complaints-To: news-complaints@lists.btinternet.com NNTP-Posting-Date: Sun, 19 Feb 2006 08:14:58 +0000 (UTC) In-Reply-To: User-Agent: Thunderbird 1.5 (Windows/20051201) Xref: g2news1.google.com comp.lang.ada:2980 Date: 2006-02-19T08:14:58+00:00 List-Id: Bj�rn Persson wrote: > Martin Dowie wrote: >> Beware that if the file already exists Ada.Text_IO.Create will raise >> an exception, so you have to use a "begin ... exception ... end;" block. > > Really? I don't see that in AARM95 A.8.2 or A.10.2. Sorry, I got confused - it's "Open" that raises an exception (Name_Error) if the file /doesn't/ already exist. That's the subprogram I'd prefer to have an extra "Create_If_Absent : Boolean := False" parameter. And, yes, I know it control coupling (bad) but IMHO, I would find the code cleaner. Cheers -- Martin