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 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!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!novia!nx01.iad01.newshosting.com!newshosting.com!newspump.sol.net!news.mv.net!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Min/Max attribute makes promises it can't keep Date: Tue, 27 Apr 2010 17:16:08 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <98b7e6f2-32ed-465c-9a52-541b7878ca86@y17g2000yqd.googlegroups.com> <9b17e781-f46a-4384-8809-b16602d10114@y30g2000yqh.googlegroups.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1272402955 1969 192.74.137.71 (27 Apr 2010 21:15:55 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Tue, 27 Apr 2010 21:15:55 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:FxzkarfXE/hooutYARDbZLuLmQA= Xref: g2news2.google.com comp.lang.ada:11217 Date: 2010-04-27T17:16:08-04:00 List-Id: Martin writes: > Put (Positive (Positive'Min(Nat, Pos))); That works, but I think a qualified expression is better: Put (Positive'(Positive'Min(Nat, Pos))); By the way, there are lots of attributes that work like this (use the base subtype). It's not just Min and Max. - Bob