From: Matthias Oltmanns <oltmanns@VFMAIL.DOFN.DE>
Subject: Re: A question about v'range...?
Date: 1997/01/09
Date: 1997-01-09T00:00:00+00:00 [thread overview]
Message-ID: <m0viEbi-000HzJC@vfmail.dofn.de> (raw)
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next reply other threads:[~1997-01-09 0:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-01-09 0:00 Matthias Oltmanns [this message]
-- strict thread matches above, loose matches on Subject: below --
1997-01-16 0:00 A question about v'range...? Matthias Oltmanns
1997-01-08 0:00 eranshap
1997-01-09 0:00 ` fd
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox