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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!feeder.erje.net!eu.feeder.erje.net!enother.net!enother.net!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!fx24.iad.POSTED!not-for-mail From: Shark8 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:33.0) Gecko/20100101 Thunderbird/33.0a1 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Static_Predicate on array-types. Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Message-ID: X-Complaints-To: abuse@teranews.com NNTP-Posting-Date: Thu, 17 Jul 2014 19:43:18 UTC Organization: TeraNews.com Date: Thu, 17 Jul 2014 13:43:16 -0600 X-Received-Bytes: 970 X-Received-Body-CRC: 858880173 Xref: news.eternal-september.org comp.lang.ada:21018 Date: 2014-07-17T13:43:16-06:00 List-Id: Is there any particular reason why we cannot put static-predicates on an array-type, such as (e.g.) to ensure that some condition always holds? Example, we want an unbounded array, but to ensure the first index is always 1: Type One_Based_Vector is Array(Positive Range <>) of Integer with Static_Predicate => One_Based_Vector'First = 1;