comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@bix.com (Tom Moran)
Subject: Re: Constraint Error - Please Help
Date: 1998/12/02
Date: 1998-12-02T00:00:00+00:00	[thread overview]
Message-ID: <3665bb15.8050794@news.pacbell.net> (raw)
In-Reply-To: 7445iv$gog$1@news.nyu.edu

>    for i in x'first+1..x'last loop
>       this:=i;
>       parent:= (i-1)/2;
>       contents:=copy(this);
>----------------------------------------------------------------
>-- here's the line with the exception ---
>       while this /= x'first and then copy(parent)<contents loop
this is surely never equal to x'first since it starts at x'first+1 and
increments.  The first time through the loop i=x'first+1 so
parent=x'first/2 and if x'first=1 then parent = 0 which is out of
copy'range.




  reply	other threads:[~1998-12-02  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-02  0:00 Constraint Error - Please Help Fanni Kolchina
1998-12-02  0:00 ` Tom Moran [this message]
1998-12-02  0:00 ` Richard D Riehle
1998-12-03  0:00 ` Jean-Pierre Rosen
1998-12-03  0:00 ` Jeff Carter
1998-12-04  0:00   ` Michael F Brenner
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox