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 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "G.B." Newsgroups: comp.lang.ada Subject: Re: Ada 2012 Constraints (WRT an Ada IR) Date: Thu, 15 Dec 2016 11:31:21 +0100 Organization: A noiseless patient Spider Message-ID: References: <999c67b0-4478-4d2b-8108-32ac48fe6316@googlegroups.com> Reply-To: nonlegitur@notmyhomepage.de Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 15 Dec 2016 10:29:58 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="490cafcd859c79fdccfdd42353032c86"; logging-data="11160"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+FlCq37VIdSNUg9LFo4FbxaJtSkOAzHLg=" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 In-Reply-To: Cancel-Lock: sha1:YCUNeExH1jbcq4sWR7KnPDqPRoQ= Xref: news.eternal-september.org comp.lang.ada:32843 Date: 2016-12-15T11:31:21+01:00 List-Id: On 15/12/2016 09:41, Dmitry A. Kazakov wrote: > In Ada type declarations must be there, so it is not a tool, but an integral part of the language. This is why "pre"-aspects is a non-starter even ignoring their semantic consistency issues. You can do things with or without them. Psychologically it won't work. Problem statement: Devise a type that represents an ordered pair of linearly ordered numbers, such that programmers can create objects that have the two elements in proper order.