comp.lang.ada
 help / color / mirror / Atom feed
From: mheaney@ni.net (Matthew Heaney)
Subject: Re: 1 and 2d image representations
Date: 1997/11/01
Date: 1997-11-01T00:00:00+00:00	[thread overview]
Message-ID: <mheaney-ya023680000111971013560001@news.ni.net> (raw)
In-Reply-To: 34556F0F.62B5@dynamite.com.au


In article <34556F0F.62B5@dynamite.com.au>, aebrain@dynamite.com.au wrote:


>If performance is a big issue, then Unchecked Conversion really could be
>the way to go.

In practice, you can reduce the overhead to zero by making careful use of
attributes when iterating over an array, for example

for Index in O'Range loop
   ... O (Index) ...
end loop;

There is no range check here, because Index is in the index subtype of O,
and therefore no check is necessary.

--------------------------------------------------------------------
Matthew Heaney
Software Development Consultant
<mailto:matthew_heaney@acm.org>
(818) 985-1271




      parent reply	other threads:[~1997-11-01  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-10-23  0:00 1 and 2d image representations Richard Beare
1997-10-27  0:00 ` Alan E & Carmel J Brain
1997-10-28  0:00   ` Samuel T. Harris
1997-11-01  0:00   ` Matthew Heaney [this message]
replies disabled

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