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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,aaabba5db6b5df34 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!r27g2000yqn.googlegroups.com!not-for-mail From: Gautier write-only Newsgroups: comp.lang.ada Subject: Re: Min/Max attribute makes promises it can't keep Date: Wed, 28 Apr 2010 04:37:35 -0700 (PDT) Organization: http://groups.google.com Message-ID: <591866ec-fa46-440c-b6fc-3092985ae3df@r27g2000yqn.googlegroups.com> References: <98b7e6f2-32ed-465c-9a52-541b7878ca86@y17g2000yqd.googlegroups.com> <9b17e781-f46a-4384-8809-b16602d10114@y30g2000yqh.googlegroups.com> <880dc0f0-7fff-440d-8aad-6ce745fcfed8@h27g2000yqm.googlegroups.com> <246a7cec-bd5f-4c48-a6cb-3874080c19ab@y17g2000yqd.googlegroups.com> NNTP-Posting-Host: 206.122.158.4 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1272454656 16379 127.0.0.1 (28 Apr 2010 11:37:36 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 28 Apr 2010 11:37:36 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r27g2000yqn.googlegroups.com; posting-host=206.122.158.4; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1045 Safari/532.5,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:11227 Date: 2010-04-28T04:37:35-07:00 List-Id: On 28 Apr., 12:58, AdaMagica wrote: > > I think you all missed my point: allowing the programmer to specify a > > constraint in situations where the constraint will not be enforced > > But the prefix of an attribute reference does not specify a > constraint. > > Integer'Min, Positive'Min, Natural'Min are all the same. But it should, at least in the case of Min/Max. Integer'Min, Positive'Min, Natural'Min being all the same breaches the spirit of the Ada language (what you see is what it means). A topic for Ada 201z... ______________________________________________________________ Gautier's Ada programming -- http://gautiersblog.blogspot.com/ NB: For a direct answer, e-mail address on the following web site: http://www.fechtenafz.ethz.ch/wm_email.htm