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,b5cd7bf26d091c6f X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!feeder.erje.net!newsfeed.straub-nv.de!noris.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Mon, 06 Jun 2011 15:32:31 +0200 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Reading the while standard input into a String References: <4decb6f4$0$6627$9b4e6d93@newsspool2.arcor-online.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4decd6ef$0$6581$9b4e6d93@newsspool3.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 06 Jun 2011 15:32:31 CEST NNTP-Posting-Host: 1a8d3ed4.newsspool3.arcor-online.net X-Trace: DXC=AKX9aA1eGb`^Y=RbYBPl4`McF=Q^Z^V3h4Fo<]lROoRa8kFjLh>_cHTX3jm]UaR2edj;Yl X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:19638 Date: 2011-06-06T15:32:31+02:00 List-Id: On 06.06.11 14:11, Dmitry A. Kazakov wrote: > On Mon, 06 Jun 2011 13:16:03 +0200, Georg Bauhaus wrote: > >> Very likely, the storage elements can be converted to Character >> without check, i.e. using an instance of Unchecked_Conversion, >> or simple the 'Address attribute. So no copying is involved >> at this stage. > > Well, if you *know* that you can read directly into string. Declare fread > with Address argument and pass the first element's address to it. In Ada? Why? :-)