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=unavailable autolearn_force=no version=3.4.4 Path: border1.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Exceptions in (dynamic) predicates Date: Thu, 31 Oct 2013 21:52:36 +0000 Organization: A noiseless patient Spider Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx05.eternal-september.org; posting-host="feb3f5761668d64af19c3661aa3d3ca4"; logging-data="15691"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/yjejN+I0x5fOhHVr/OAT8HRNlve7g2lk=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) Cancel-Lock: sha1:sDrxYC4JvCM8YIU2YnCf0E8tHME= sha1:pLSduEgIP+gOwNMB8z6VWBV7jPU= Xref: number.nntp.dca.giganews.com comp.lang.ada:183765 Date: 2013-10-31T21:52:36+00:00 List-Id: A StackOverflow answer contains the following code: subtype XYZ is ABC with Dynamic_Predicate => ((XYZ.A in Positive) and (XYZ.B not in Positive)) or else raise Constraint_Error; (actually, the original didn't have the 'else', with unhelpful results :) I can't see where in the ARM "raise Constraint_Error" can be a (component of a) boolean expression? or is this a GNATism?