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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,81bb2ce65a3240c3 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.125.233 with SMTP id mt9mr19636102pbb.5.1335892543994; Tue, 01 May 2012 10:15:43 -0700 (PDT) Path: r9ni120342pbh.0!nntp.google.com!news1.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Shark8 Newsgroups: comp.lang.ada Subject: Re: What would you like in Ada202X? Date: Tue, 1 May 2012 10:15:43 -0700 (PDT) Organization: http://groups.google.com Message-ID: <33504818.125.1335892543393.JavaMail.geo-discussion-forums@ynbv35> References: <3637793.35.1335340026327.JavaMail.geo-discussion-forums@ynfi5> <6167748.344.1335524349986.JavaMail.geo-discussion-forums@yncd3> <31031393.3509.1335770929925.JavaMail.geo-discussion-forums@vbjb10> <1632135.1857.1335857306358.JavaMail.geo-discussion-forums@ynjb15> NNTP-Posting-Host: 96.2.54.122 Mime-Version: 1.0 X-Trace: posting.google.com 1335892543 23961 127.0.0.1 (1 May 2012 17:15:43 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 1 May 2012 17:15:43 +0000 (UTC) In-Reply-To: <1632135.1857.1335857306358.JavaMail.geo-discussion-forums@ynjb15> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=96.2.54.122; posting-account=lJ3JNwoAAAAQfH3VV9vttJLkThaxtTfC User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-05-01T10:15:43-07:00 List-Id: On Tuesday, May 1, 2012 2:28:26 AM UTC-5, Martin wrote: >=20 > Ah, yes, that makes sense. Not something I've ever thought I needed but t= hat's just me. I can think of a few times where I'd like to have overriden = 'Image and _millions_ of times where I wish 'I= mage didn't have a leading space!! >=20 > -- Martin Hm, why not rename Trim or make a subprogram/function that wraps it?=20 Could the new expression functions perhaps do that? (I haven't played w/ th= em.) Or, I suppose that since this is a "feature X would be cool" thread, someth= ing like String'Trim( " DATA STRING " ) to return "DATA STRING" attribute= ; much like we have Float'Truncation(X). Seems reasonable to me. It might be a little wordier than some would like; but Ada's always emphasi= zed readability, and the above method seems to fit in well, especially cons= idering the 'Truncation attribute.