From: "Stuart" <stuart@0.0>
Subject: Re: Loop parameter type
Date: Mon, 25 Sep 2006 12:50:39 +0100
Date: 2006-09-25T12:50:39+01:00 [thread overview]
Message-ID: <4517bfad$1_1@glkas0286.greenlnk.net> (raw)
In-Reply-To: 20060925105627.GA14409@ws.max.zp.ua
"Maxim Reznik" <reznikmm@front.ru> wrote in message
news:20060925105627.GA14409@ws.max.zp.ua...
...
> 1: procedure Test is
> 2: type Int is range 0 .. 1000;
...
> 4: C_Int : Int := 0;
> 5: begin
...
> 10: for K in 1 .. 10 loop
> 11: C_Int := C_Int + K;
> 12: end loop;
> 13: end Test;
> Why GNAT says type of K is Standard.Integer type?
Why should it think it is anything else?
Try the following for line 10:
for K in Int range 1..10 loop
--
Regards
Stuart
next prev parent reply other threads:[~2006-09-25 11:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-25 10:56 Loop parameter type Maxim Reznik
2006-09-25 11:50 ` Stuart [this message]
2006-09-25 16:32 ` Robert A Duff
2006-09-25 19:08 ` Jeffrey R. Carter
2006-09-26 0:12 ` Adam Beneschan
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox