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.70.37.225 with SMTP id b1mr6632140pdk.1.1412463807624; Sat, 04 Oct 2014 16:03:27 -0700 (PDT) X-Received: by 10.182.236.106 with SMTP id ut10mr975obc.19.1412463807401; Sat, 04 Oct 2014 16:03:27 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!feeder.erje.net!eu.feeder.erje.net!enother.net!enother.net!peer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!uq10no4072780igb.0!news-out.google.com!bc9ni15653igb.0!nntp.google.com!uq10no4072764igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 4 Oct 2014 16:03:27 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=24.36.114.177; posting-account=Lb5doAoAAAAWHET3z2_nBVbFSXaZQG1V NNTP-Posting-Host: 24.36.114.177 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: comparing characters in string From: Stribor40 Injection-Date: Sat, 04 Oct 2014 23:03:27 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Received-Bytes: 1794 X-Received-Body-CRC: 1478676061 Xref: news.eternal-september.org comp.lang.ada:22091 Date: 2014-10-04T16:03:27-07:00 List-Id: I am trying to do something with this function...For example I would pass 2 strings to function like this.... function tt (a : in String ; b : in String) return Boolean is begin for i in a'Range loop if a'(a'First) = b(b'First + 1) then return false; end if; end loop; return true; end tt; I am calling it like so... b: Boolean := tt("123","321"); What the function is suppose to do is take first character from first parametar and compare it to every character in string b but not first character of string b. Unfortunately my compiler doesnt like me and gives me this error... subtype mark required in this context found "a" declared at line 6 compilation error