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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!gandalf.srv.welterde.de!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Textedit and txt Date: Mon, 11 May 2015 20:10:20 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <47c7df1e-17c1-44cb-a455-43431f0d39cd@googlegroups.com> <85zj5wb9et.fsf@stephe-leake.org> <4b14659e-8c26-4c0a-8945-a5289740e054@googlegroups.com> <51c639dd-a48c-4130-becd-750cb23094da@googlegroups.com> <35aabdcd-6064-4999-9cdf-d143b0593a31@googlegroups.com> <13a13e0e-0de4-4235-9e1e-c6e0446d3f04@googlegroups.com> NNTP-Posting-Host: rrsoftware.com X-Trace: loke.gir.dk 1431393020 22600 24.196.82.226 (12 May 2015 01:10:20 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Tue, 12 May 2015 01:10:20 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: news.eternal-september.org comp.lang.ada:25825 Date: 2015-05-11T20:10:20-05:00 List-Id: wrote in message news:13a13e0e-0de4-4235-9e1e-c6e0446d3f04@googlegroups.com... > On Thursday, May 7, 2015 at 5:12:29 PM UTC-4, Laurent wrote: >> On Wednesday, May 6, 2015 at 11:23:36 PM UTC+2, Randy Brukardt wrote: ... > Sorry to go back in the thread. However, instead of creating a new > symbol '+' to indicate append, Sorry, but "+" here is for conversion to or from type String. It has nothing to do with "append". The problem is that the conversion routine is named To_Bounded_String, which is way too long to use in/with complex expressions. And the other way is To_String, which is only a bit better. Especially if you are "use-adverse". The existing "&" work in some cases, but not others (for instance, the call to Put in the OPs example). Moreover, they're the reason that the package has to be junked, because we cannot have proper string literals and the like with them around (that would make everything ambiguous). Avoiding those mixed things makes the packages a lot more sane (but then a conversion operator is required). Randy. it might be easier to consult the Ada > RM. In section A.4.4 of the Ada 2012 RM, there are a number of overloaded > functions specifically called 'Append'. Furthermore, the second page of > this > section specifically uses '&' as an append operator. Since these two > constructions are already part of the package `Bounded_String', it isn't > clear > what we gain by using a variant construction. > > Bruce B.