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: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: I am not understanding user defined exceptions Date: Sat, 04 Feb 2017 17:08:38 +0000 Organization: A noiseless patient Spider Message-ID: References: <6cb6e781-c6df-4962-99e3-760e7c7fab88@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="6ca5cb3a56576060adb6aca67dc15486"; logging-data="18988"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX196t/pCG13P0/aMSl3cDT+gtiiUCAvwKVk=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (darwin) Cancel-Lock: sha1:uGB7ttSDFL+UQgAIyOpCPCQDOgY= sha1:CpPAp+yA+JOCtE9OyEa6Gh1y8Mk= Xref: news.eternal-september.org comp.lang.ada:33251 Date: 2017-02-04T17:08:38+00:00 List-Id: "J-P. Rosen" writes: > subtype Exclude_One is integer with static_predicate Exclude_One /= 1; My version with Dynamic_Predicate works, but (having checked with John Barnes' book) I see I was being too cautious. Having read over that, I have to say that the GNAT approach (just Predicate, the compiler knows which one to choose) seems the right one to me!