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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1116ece181be1aea X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-29 19:20:25 PST Path: news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!wn11feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi_feed4!attbi.com!rwcrnsc53.POSTED!not-for-mail Message-ID: <3F78E850.8010401@comcast.net> From: "Robert I. Eachus" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Is the Writing on the Wall for Ada? References: <1064527575.648809@master.nyc.kbcfp.com> <3F739C1D.4030907@attbi.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 24.34.139.183 X-Complaints-To: abuse@comcast.net X-Trace: rwcrnsc53 1064888422 24.34.139.183 (Tue, 30 Sep 2003 02:20:22 GMT) NNTP-Posting-Date: Tue, 30 Sep 2003 02:20:22 GMT Organization: Comcast Online Date: Tue, 30 Sep 2003 02:20:22 GMT Xref: news1.google.com comp.lang.ada:279 Date: 2003-09-30T02:20:22+00:00 List-Id: Craig Carey wrote: > Also the new Get_Line subroutine, returning a line of any length, > would do unnecessary copying. Not necessarily. I think that we will end up with both a Get_Line that returns an Unbounded_String in Ada 0Y and one that returns a String. In Ada 83, a function that returned an unbounded String (notice the punctuation) was almost useless. In fact, there was one in Ada 80, and it was taken out. But changes in Ada 95 made such a function much more useful, so I think it will get put back. (It doesn't require any changes to the compiler to add it, but some compiler vendors may do some work to make it more efficient.) As for a Get_Line function returning an Unbounded_String, the only real question is where it should be defined. I'd be happy with a child of Ada.Text_IO that supported several operations on Unbounded_Strings including Get, Get_Line, and Put. -- Robert I. Eachus "Quality is the Buddha. Quality is scientific reality. Quality is the goal of Art. It remains to work these concepts into a practical, down-to-earth context, and for this there is nothing more practical or down-to-earth than what I have been talking about all along...the repair of an old motorcycle." -- from Zen and the Art of Motorcycle Maintenance by Robert Pirsig