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-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.news.pas.earthlink.net.POSTED!a6202946!not-for-mail From: "Jeffrey R. Carter" Organization: jrcarter at acm dot org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada.Text_IO.Create 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> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Sun, 19 Feb 2006 19:45:15 GMT NNTP-Posting-Host: 67.150.71.47 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.news.pas.earthlink.net 1140378315 67.150.71.47 (Sun, 19 Feb 2006 11:45:15 PST) NNTP-Posting-Date: Sun, 19 Feb 2006 11:45:15 PST Xref: g2news1.google.com comp.lang.ada:2996 Date: 2006-02-19T19:45:15+00:00 List-Id: Martin Dowie wrote: > 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. I'm not sure I see the value of this. If you're opening for reading, a Create_If_Absent would create an empty file; End_Of_File would be true immediately. If you're opening for writing, aren't you going to overwrite the contents anyway? In that case, doesn't Create do what you want? -- Jeff Carter "Perfidious English mouse-dropping hoarders." Monty Python & the Holy Grail 10