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: border2.nntp.dca1.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!reality.xs3.de!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: type conversion Date: Mon, 13 Oct 2014 17:36:35 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <8d412a6d-5589-4601-a7f8-5bb6d1b8850f@googlegroups.com> <1413106638.3344.5.camel@obry.net> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: loke.gir.dk 1413239795 7775 69.95.181.76 (13 Oct 2014 22:36:35 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Mon, 13 Oct 2014 22:36:35 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: number.nntp.giganews.com comp.lang.ada:189738 Date: 2014-10-13T17:36:35-05:00 List-Id: "Georg Bauhaus" wrote in message news:m1f1gi$ooh$1@dont-email.me... > On 12.10.14 11:37, Pascal Obry wrote: >> To control the message or the exception to be raised one can use the >> Predicate_Failure aspect: >> >> subtype Integer_String is new String >> with Dynamic_Predicate => Integer'Value (Integer_String) in Integer, >> Predicate_Failure => "not an integer string"; > > Is Predicate_Failure a new aspect in GNAT? My RM does not list it, > and GNAT GPL 2014 rejects it. It'll be in Corrigendum 2015 (the next set of bug fixes for Ada). Before that comes out, I wouldn't depend on it (one expects it to take a while before compilers catch up to the Corrigendum). Randy.