From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_00,FROM_WORDY, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,641f47d4563311a6 X-Google-Attributes: gid103376,public From: "Ken Garlington" Subject: Re: Array of bytes type Date: 2000/05/20 Message-ID: #1/1 X-Deja-AN: 625616190 References: <3924E094.6B03B5BD@concentric.net> <3925B355.6C6565E6@acm.org> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 X-Complaints-To: abuse@flash.net X-Trace: news.flash.net 958792179 216.215.84.143 (Fri, 19 May 2000 22:09:39 CDT) Organization: FlashNet Communications, http://www.flash.net X-MSMail-Priority: Normal NNTP-Posting-Date: Fri, 19 May 2000 22:09:39 CDT Newsgroups: comp.lang.ada Date: 2000-05-20T00:00:00+00:00 List-Id: "Jeff Carter" 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.