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,802ee425bbc3eba3 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.223.40 with SMTP id qr8mr2328282pbc.0.1335728119091; Sun, 29 Apr 2012 12:35:19 -0700 (PDT) Path: r9ni113098pbh.0!nntp.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!nntp.TheWorld.com!.POSTED!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Quantified expressions: no support for restriction predicates Date: Sun, 29 Apr 2012 15:35:18 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <22242340.4097.1335486547825.JavaMail.geo-discussion-forums@vbki8> <796413.773.1335612600942.JavaMail.geo-discussion-forums@vbai3> <9912125.1780.1335724639338.JavaMail.geo-discussion-forums@ynee1> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 X-Trace: pcls6.std.com 1335728118 23689 192.74.137.71 (29 Apr 2012 19:35:18 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Sun, 29 Apr 2012 19:35:18 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:xEJ72h2vNqrFBW6W8dUgr6G424A= Content-Type: text/plain; charset=us-ascii Date: 2012-04-29T15:35:18-04:00 List-Id: phil.clayton@lineone.net writes: > Is that actually possible for a Dynamic_Predicate? Section 3.2.4 Subtype Predicates, para 27/3 says: > > The discrete_subtype_definition of a loop_parameter_specification > shall not denote ... or any subtype to which Dynamic_Predicate > specifications apply. Yeah, I think you're right. The idea is that we didn't want hidden inefficiencies. type T is new Integer with Dynamic_Predicate => T mod 10_000 = 0; for X in T loop -- Illegal! If that were legal, it would probably be grossly inefficient. - Bob