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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,6327f05d4989a68d X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.224.190.193 with SMTP id dj1mr47503661qab.6.1357924227061; Fri, 11 Jan 2013 09:10:27 -0800 (PST) Received: by 10.49.24.164 with SMTP id v4mr13924814qef.6.1357924227003; Fri, 11 Jan 2013 09:10:27 -0800 (PST) Path: k2ni173qap.0!nntp.google.com!p13no1026648qai.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 11 Jan 2013 09:10:26 -0800 (PST) In-Reply-To: <7wrdmbre6jw9.qww9l0uzj6mg.dlg@40tude.net> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=188.82.32.61; posting-account=3cDqWgoAAAAZXc8D3pDqwa77IryJ2nnY NNTP-Posting-Host: 188.82.32.61 References: <7wrdmbre6jw9.qww9l0uzj6mg.dlg@40tude.net> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <16126f18-c136-4234-992b-c99b770ce319@googlegroups.com> Subject: Re: Press Release - Ada 2012 Language Standard Approved by ISO From: Marius Amado-Alves Cc: mailbox@dmitry-kazakov.de Injection-Date: Fri, 11 Jan 2013 17:10:27 +0000 Content-Type: text/plain; charset=ISO-8859-1 Date: 2013-01-11T09:10:26-08:00 List-Id: > subtype More_Fun_Number is Integer with > > Dynamic_Predicate => Random = More_Fun_Number; :-) Prolog has a "maybe" that succeeds a certain percentage of calls. This could be used to implement it. declare X : More_Fun_Number; begin return Success; end; exception when other => return Failure; Maybe Ada will grow non-determinism.