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!mx02.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: {Pre,Post}conditions and side effects Date: Fri, 24 Apr 2015 11:18:28 +0200 Organization: A noiseless patient Spider Message-ID: References: <2430252d-52a1-4609-acef-684864e6ca0c@googlegroups.com> <0a718b39-ebd3-4ab5-912e-f1229679dacc@googlegroups.com> <9ee5e186-5aaa-4d07-9490-0f9fdbb5ca18@googlegroups.com> <87tww5296f.fsf@adaheads.sparre-andersen.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 24 Apr 2015 09:17:34 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="23dab0694e4174fdc880833ec67fa650"; logging-data="23135"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/C8Q2OCZuNMosF8Pv+TUtW" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 In-Reply-To: <87tww5296f.fsf@adaheads.sparre-andersen.dk> Cancel-Lock: sha1:aSq+z27GKfwBENgcYrgNU5G6584= Xref: news.eternal-september.org comp.lang.ada:25587 Date: 2015-04-24T11:18:28+02:00 List-Id: Le 24/04/2015 10:59, Jacob Sparre Andersen a écrit : > One problem I have with assertion aspects is that I get the same > exception no matter which mistake I have made. If I put the check > inside a subprogram instead of in its profile, I can get more clear > information about which kinds of mistakes I make. Your wishes will be soon satisfied, see AI12-0022-1 and AI12-0054-2 (raise expression and aspect Predicate_Failure) -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr