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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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.180.97.198 with SMTP id ec6mr3444695wib.5.1356188879756; Sat, 22 Dec 2012 07:07:59 -0800 (PST) Path: i11ni256899wiw.0!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!85.12.40.131.MISMATCH!xlned.com!feeder3.xlned.com!feeder.erje.net!us.feeder.erje.net!gandalf.srv.welterde.de!news.karotte.org!news2.arglkargh.de!zen.net.uk!dedekind.zen.co.uk!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada,fr.comp.lang.ada Subject: Re: Press Release - Ada 2012 Language Standard Approved by ISO Date: Wed, 19 Dec 2012 09:33:01 +0100 Organization: cbb software GmbH Message-ID: <7wrdmbre6jw9.qww9l0uzj6mg.dlg@40tude.net> References: Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: FbOMkhMtVLVmu7IwBnt1tw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-12-19T09:33:01+01:00 List-Id: On Tue, 18 Dec 2012 21:12:25 +0000, Bill Findlay wrote: > On 18/12/2012 16:57, in article wcc8v8vti17.fsf@shell01.TheWorld.com, > "Robert A Duff" wrote: > >> dirk@vana.cs.kuleuven.be. (Dirk Craeynest) writes: >> >>> Ada 2012 brings significant enhancements to Ada, most notably in the >>> area of "contract-based programming." New features here include the >>> ability to specify preconditions and postconditions for subprograms, >>> and invariants for private (encapsulated) types. >> >> Why does everybody neglect predicates, which are more important >> than pre/post/invariant? > > A bit of fun with a predicate: [...] Take an instance of Ada.Numerics.Discrete_Random and do: subtype More_Fun_Number is Integer with Dynamic_Predicate => Random = More_Fun_Number; -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de