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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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!news4.google.com!news.glorb.com!news.cs.univ-paris8.fr!proxad.net!proxad.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Ada.Command_Line and wildcards Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <45dcaed8_6@news.bluewin.ch> <1172132169.423514.271890@s48g2000cws.googlegroups.com> <45E1B7AA.30804@obry.net> <1dpvltpykld8r$.1rn2ewhc0itjt$.dlg@40tude.net> <1s55dlqncctpm$.zs9aloiw8j2l$.dlg@40tude.net> <1172509912.655684.114870@t69g2000cwt.googlegroups.com> Date: Mon, 26 Feb 2007 21:30:03 +0100 Message-ID: NNTP-Posting-Date: 26 Feb 2007 21:30:00 CET NNTP-Posting-Host: 43fab84e.newsspool4.arcor-online.net X-Trace: DXC=hl_BPQL=1E>d8Nb@@ZG@b=4IUK?::2AfX1`m:jkXi;BPj`o2 X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:9556 Date: 2007-02-26T21:30:00+01:00 List-Id: On 26 Feb 2007 09:11:53 -0800, Hyman Rosen wrote: > On Feb 26, 3:44 am, "Dmitry A. Kazakov" > wrote: >> Further, why do you presume that heap is larger than stack? >> AFAIK, nothing in RM requires or implies that. > > Past experience. If that's not the case for some implementation then > fine, but I suspect it's more often the case then not. I'm pretty sure > we've seen newbie examples on the newsgroup where they create > unconstrained objects (is that the right term?) on the stack and then > wonder why their program doesn't work. But this is an compiler implementation artefact which cannot serve as a guideline for the standard library design. P.S. Surely there should be a Get_Line for all string types, but not because GNAT has heap larger than stack. The reason is language regularity. P.P.S. For Unbounded_String Append_Line could be a useful complement to Get_Line. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de