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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e219d94b946dfc26 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!130.81.64.211.MISMATCH!cycny01.gnilink.net!spamkiller2.gnilink.net!gnilink.net!trndny03.POSTED!0e8a908a!not-for-mail From: Hyman Rosen User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada.Command_Line and wildcards References: <45dcaed8_6@news.bluewin.ch> <1172132169.423514.271890@s48g2000cws.googlegroups.com> <45E1B7AA.30804@obry.net> <1dpvltpykld8r$.1rn2ewhc0itjt$.dlg@40tude.net> In-Reply-To: <1dpvltpykld8r$.1rn2ewhc0itjt$.dlg@40tude.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Mon, 26 Feb 2007 05:03:26 GMT NNTP-Posting-Host: 68.161.16.21 X-Complaints-To: abuse@verizon.net X-Trace: trndny03 1172466206 68.161.16.21 (Mon, 26 Feb 2007 00:03:26 EST) NNTP-Posting-Date: Mon, 26 Feb 2007 00:03:26 EST Xref: g2news2.google.com comp.lang.ada:9539 Date: 2007-02-26T05:03:26+00:00 List-Id: Dmitry A. Kazakov wrote: > Get_Line should propagate an exception which could be handled in a > reasonable way. That's not really good enough. That is, your program is to going to tell you "I can't do that" when you ask "give me the next line". Fine, you're not crashing, but you really want that line! There ought to be a Get_Line which returns an Unbounded_String (did I get that right?), so that space for it comes from the heap instead of the stack. And yes, I know it's a security issue because someone can feed the program unbounded input and have it chew up large chunks of RAM, but sometimes you really do need unbounded lengths on your input lines. I've often posted the example of a .newsrc file I had where a line of interest was well over 100,000 characters long.