comp.lang.ada
 help / color / mirror / Atom feed
From: "Ken Garlington" <Ken.Garlington@computer.org>
Subject: Re: Array of bytes type
Date: 2000/05/20
Date: 2000-05-20T00:00:00+00:00	[thread overview]
Message-ID: <TlnV4.21639$wb7.1493217@news.flash.net> (raw)
In-Reply-To: 3925B355.6C6565E6@acm.org

"Jeff Carter" <jrcarter@acm.org> wrote in message
news:3925B355.6C6565E6@acm.org...
> Why "Integer range <>"? Are the following likely to be meaningful or
> useful?
>
> A : Byte_Array (-350 .. -279);
> B : Byte_Array (-10 .. 10);

Actually, there's a few cases where it might be useful - e.g.

Target_Count : Byte_Array (-90 .. 90);  -- number of objects detected in
a -90 degree .. +90 degree arc, to 1 degree resolution.

Other uses include values related to floors of a building that contains
sub-basements, lookup tables that are indexed by +/- temperature,...

Even if you don't like negative numbers, at least starting with zero permits
certain small but useful optimizations on some architectures.






  reply	other threads:[~2000-05-20  0:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-19  0:00 Array of bytes type Joseph P Vlietstra
2000-05-19  0:00 ` Ken Garlington
2000-05-21  0:00   ` Robert Dewar
     [not found]     ` <8gae49$tr5$1@slb7.atl.mindspring.net>
2000-05-22  0:00       ` Marin D. Condic
2000-05-22  0:00         ` Jean-Pierre Rosen
2000-05-22  0:00         ` Ken Garlington
2000-05-22  0:00           ` David Kristola
2000-05-23  0:00             ` Paul Warren
2000-05-22  0:00           ` Marin D. Condic
2000-05-19  0:00 ` Jeff Carter
2000-05-20  0:00   ` Ken Garlington [this message]
2000-05-19  0:00 ` James S. Rogers
2000-05-19  0:00 ` DuckE
2000-05-19  0:00 ` Marin D. Condic
replies disabled

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