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,624c77c4e3ffaa2 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!attbi_s21.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Defaulting to Standard_Output References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s21 1224807395 12.201.97.213 (Fri, 24 Oct 2008 00:16:35 GMT) NNTP-Posting-Date: Fri, 24 Oct 2008 00:16:35 GMT Organization: AT&T ASP.att.net Date: Fri, 24 Oct 2008 00:16:35 GMT Xref: g2news1.google.com comp.lang.ada:2478 Date: 2008-10-24T00:16:35+00:00 List-Id: deadlyhead wrote: > > If anybody has a better way of handling defaulting to Standard_Output, > I'd like to see it. This works for me, and seems elegant enough. It > avoids a lot of messy conditionals in the body, anyway. This is what Ada.Text_IO.Set_Output is for. -- Jeff Carter "When danger reared its ugly head, he bravely turned his tail and fled." Monty Python and the Holy Grail 60