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.2 required=5.0 tests=BAYES_00,FREEMAIL_FROM, FROM_STARTS_WITH_NUMS autolearn=no autolearn_force=no version=3.4.4 X-Received: by 10.107.35.4 with SMTP id j4mr23321381ioj.28.1515979093389; Sun, 14 Jan 2018 17:18:13 -0800 (PST) X-Received: by 10.157.44.232 with SMTP id e37mr1206108otd.11.1515979093194; Sun, 14 Jan 2018 17:18:13 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.unit0.net!peer01.am4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!w142no1534390ita.0!news-out.google.com!b73ni14912ita.0!nntp.google.com!g80no1996165itg.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 14 Jan 2018 17:18:13 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=85.240.219.155; posting-account=rhqvKAoAAABpikMmPHJSZh4400BboHwT NNTP-Posting-Host: 85.240.219.155 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: ADA.STRINGS.INDEX_ERROR : a-strunb.adb:782 From: Mehdi Saada <00120260a@gmail.com> Injection-Date: Mon, 15 Jan 2018 01:18:13 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Body-CRC: 4244080131 X-Received-Bytes: 1867 Xref: reader02.eternal-september.org comp.lang.ada:49900 Date: 2018-01-14T17:18:13-08:00 List-Id: This if statement exactly, seems to raise "ADA.STRINGS.INDEX_ERROR : a-strunb.adb:782"(No indication of line, so I can't know more). What does this exception means ? You can see there's no string type variable to be accessed, here. CHAINE is of UNBOUNDED_STRING type. LA_PILE is a stack of characters, EMPILER means "putting on the stack's top" in french. if IS_BASIC(ELEMENT(CHAINE,IND)) then EMPILER(LA_PILE,ELEMENT(CHAINE,IND)); else DELETE(CHAINE, IND,IND); end if; It's enclosed in: for Ind in 1..Length(CHAINE) loop begin if IS_BASIC(ELEMENT(CHAINE,IND)) then EMPILER(LA_PILE,ELEMENT(CHAINE,IND)); else DELETE(CHAINE, IND,IND); end if; end; end loop; Thanks