comp.lang.ada
 help / color / mirror / Atom feed
From: mheaney@ni.net (Matthew Heaney)
Subject: Re: What's wrong with this syntax?
Date: 1996/12/15
Date: 1996-12-15T00:00:00+00:00	[thread overview]
Message-ID: <mheaney-ya023280001512962211170001@news.ni.net> (raw)
In-Reply-To: 32B49811.4C8@acm.org


In article <32B49811.4C8@acm.org>, geneo@acm.org wrote:

>        Some_Limit : Constant := 1024;
>        ...
>        for i in 1..(Some_Limit - 2) loop

As Robert Dewar pointed out, it's best to explicitly name the type of the
loop index if you use the loop index to dereference an array, etc

for I in Positive range 1 .. Some_Limit - 2 loop

--------------------------------------------------------------------
Matthew Heaney
Software Development Consultant
mheaney@ni.net
(818) 985-1271




  reply	other threads:[~1996-12-15  0:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-12-04  0:00 What's wrong with this syntax? John Gluth
1996-12-05  0:00 ` Ken Garlington
1996-12-05  0:00   ` Bob Gilbert
1996-12-10  0:00     ` Robert Dewar
1996-12-15  0:00     ` Gene Ouye
1996-12-15  0:00       ` Matthew Heaney [this message]
1996-12-05  0:00 ` johnherro
replies disabled

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