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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,602b7f606b0d64e2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-01-15 08:44:30 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!dialin-145-254-049-067.arcor-ip.NET!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Private discrete type as index Date: Wed, 15 Jan 2003 17:45:06 +0100 Organization: At home Message-ID: References: Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: dialin-145-254-049-067.arcor-ip.net (145.254.49.67) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: fu-berlin.de 1042649068 22353264 145.254.49.67 (16 [77047]) User-Agent: KNode/0.7.1 Xref: archiver1.google.com comp.lang.ada:33041 Date: 2003-01-15T17:45:06+01:00 List-Id: tmoran@acm.org wrote: >> type x is limited private; >> type test is array(x) of boolean; > The "array" abstraction has certain characteristics, among them > sequential indexing. Why so? Array is just a mapping index->element, so if no index ranges required then the array index need not to be ordered (have "<" and "="), only "=" is required. Anyway a limited type is allowed to have both. -- Regards, Dmitry A. Kazakov www.dmitry-kazakov.de