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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.157.35.42 with SMTP id j39mr5496430otb.42.1460551663949; Wed, 13 Apr 2016 05:47:43 -0700 (PDT) X-Received: by 10.182.49.197 with SMTP id w5mr99229obn.16.1460551663914; Wed, 13 Apr 2016 05:47:43 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!gy3no3289868igb.0!news-out.google.com!u9ni95igk.0!nntp.google.com!g8no49344igr.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 13 Apr 2016 05:47:43 -0700 (PDT) In-Reply-To: <861t69r8r9.fsf@gaheris.avalon.lan> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=193.71.180.114; posting-account=uulyKwoAAAA86DO0ODu--rZtbje8Sytn NNTP-Posting-Host: 193.71.180.114 References: <2055a188-fb5f-496a-ab37-b25d81cebe1b@googlegroups.com> <5271bc70-bfea-4e2f-b4e3-6c847843f5b4@googlegroups.com> <9c28eac4-8edf-45dc-afcd-082abfd4cf4b@googlegroups.com> <1460548465.940.5.camel@obry.net> <861t69r8r9.fsf@gaheris.avalon.lan> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <8d30aa28-80f3-4a4a-8577-22593e71736a@googlegroups.com> Subject: Re: Substrings as argument to procedures/functions From: Egil H H Injection-Date: Wed, 13 Apr 2016 12:47:43 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:30096 Date: 2016-04-13T05:47:43-07:00 List-Id: On Wednesday, April 13, 2016 at 2:42:04 PM UTC+2, Mart van de Wege wrote: > I do have a minor question here though: That does not work if you have > any reason to try and modify the first character of a String. S(1) := > To_Upper(S(1)) works, but S'First := To_Upper(S'First) does not. > > So how do I handle that particular case? S(S'First) := To_Upper(S(S'First)); -- ~egilhh