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!news2.google.com!goblin3!goblin.stu.neva.ru!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!news.mixmin.net!news.tornevall.net!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: Reading the while standard input into a String Date: Mon, 06 Jun 2011 09:55:39 -0700 Organization: TornevallNET - http://news.tornevall.net Message-ID: References: <1ckesozpipi2y$.p1ei3zmgxjfc$.dlg@40tude.net> NNTP-Posting-Host: c49ff9b6ec6808ca4371cd2d220319cf Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: 26fced330a2814f4ee2e28e4aa466491 X-Complaints-To: abuse@tornevall.net User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10 X-Complaints-Language: Spoken language is english or swedish - NOT ITALIAN, FRENCH, GERMAN OR ANY OTHER LANGUAGE! In-Reply-To: <1ckesozpipi2y$.p1ei3zmgxjfc$.dlg@40tude.net> X-UserIDNumber: 1738 X-Validate-Post: http://news.tornevall.net/validate.php?trace=26fced330a2814f4ee2e28e4aa466491 X-Complaints-Italiano: Non abbiamo padronanza della lingua italiana - se mandate una email scrivete solo in Inglese, grazie X-Posting-User: 0243687135df8c4b260dd4a9a93c79bd Xref: g2news1.google.com comp.lang.ada:19642 Date: 2011-06-06T09:55:39-07:00 List-Id: On 06/06/2011 05:05 AM, Dmitry A. Kazakov wrote: > On Mon, 6 Jun 2011 10:46:20 +0000 (UTC), Natasha Kerensikova wrote: > >> On 2011-06-06, Dmitry A. Kazakov wrote: > >>> Don't use Unbounded_String; that is a >>> bad idea in almost all cases, this one included. >> >> Would you explain why? > > Because they are inefficient ... "Efficiency" is a function of timing requirements. GNAT's Unbounded_String is so inefficient that we have a soft real-time application that makes extensive use of Unbounded_String and has no problem meeting its timing requirements. Unbounded_String is perfectly reasonable for many situations; worrying about "efficiency" before encountering timing constraints is premature optimization. -- Jeff Carter "I fart in your general direction." Monty Python & the Holy Grail 05