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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9122cfe7284630ab X-Google-Attributes: gid103376,public From: Matthias Oltmanns Subject: Re: A question about v'range...? Date: 1997/01/09 Message-ID: #1/1 X-Deja-AN: 208652190 sender: Ada programming language comments: Gated by NETNEWS@AUVM.AMERICAN.EDU newsgroups: comp.lang.ada Date: 1997-01-09T00:00:00+00:00 List-Id: The problem is not the vector'range inside the task. The loop will iterate through 1 .. 100, but you get a CONSTRAINT ERROR after the 10. iteration. Take a look at the line ind := k mod num; -- (num=10) For k= 10, 20, ... the expression evaluates to zero, but the variable 'ind' is of type Positive. You should spend the variable 'ind' the type Natural and all work fine. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Matthias Oltmanns Daimler-Benz Aerospace Dornier - - - - - - - - - - Information and Tel: +49 7545 8 5683 Communication Systems FAX: +49 7545 8 4504 email: Oltmanns@vfmail.dofn.de ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~