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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1116ece181be1aea X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-30 05:21:01 PST Path: archiver1.google.com!news2.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.he.net!newsfeed1.easynews.com!easynews.com!easynews!elnk-pas-nf1!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!newsread1.news.atl.earthlink.net.POSTED!not-for-mail Message-ID: <3F79751F.3000709@noplace.com> From: Marin David Condic User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 (OEM-HPQ-PRS1C03) 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> <3F78E850.8010401@comcast.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 30 Sep 2003 12:21:00 GMT NNTP-Posting-Host: 209.165.26.251 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.news.atl.earthlink.net 1064924460 209.165.26.251 (Tue, 30 Sep 2003 05:21:00 PDT) NNTP-Posting-Date: Tue, 30 Sep 2003 05:21:00 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: archiver1.google.com comp.lang.ada:4 Date: 2003-09-30T12:21:00+00:00 List-Id: It would be nice to have unbounded string versions of all the subprograms that use strings. Open, Create, etc., all could be duplicated with an Unbounded_String parameter. Don't forget the sub-packages like Integer_IO, et alia. They have string parameters as well and I'd like to be able to use Unbounded_String everywhere. Should there be Unbounded_String versions of anything else besides Text_IO? The other IO packages could utilize Unbounded_String for filenames, etc. Offhand, I can't think of where else type String occurs where I'd like to use Unbounded_String. Attributes that return a String so I don't have to encase them in a call to To_Unbounded_String () to get them in some location where I can use them? I'd personally like to program totally in Unbounded_String up until the point where I might need efficiency or determinism. Don't throw out String - just make it possible to ignore it. A child package vs a separate package? I could see reasons for going both ways. We have Wide_Text_IO as a separate package, so there's a case for Unbounded_Text_IO (and Unbounded_Wide_Text_IO). However Ada.Text_IO.Unbounded would mean you're just adding the new things rather than duplicating everything, so there's a case for that as well. Toss a coin. I don't think there is any huge sufferings to be caused by going either way (as you observe, it doesn't mean making compiler changes - just writing a new package) and whichever way it goes, the user will have something new to "with" and "use", so it doesn't really make much difference to the end user. MDC Robert I. Eachus wrote: > > 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. -- ====================================================================== Marin David Condic I work for: http://www.belcan.com/ My project is: http://www.jsf.mil/NSFrames.htm Send Replies To: m c o n d i c @ a c m . o r g "All reformers, however strict their social conscience, live in houses just as big as they can pay for." --Logan Pearsall Smith ======================================================================