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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,6327f05d4989a68d X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.19.194 with SMTP id h2mr2200066wie.0.1355927655468; Wed, 19 Dec 2012 06:34:15 -0800 (PST) Path: i11ni219719wiw.0!nntp.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Bill Findlay Newsgroups: comp.lang.ada,fr.comp.lang.ada Subject: Re: Press Release - Ada 2012 Language Standard Approved by ISO Date: Wed, 19 Dec 2012 14:34:15 +0000 Message-ID: References: <7wrdmbre6jw9.qww9l0uzj6mg.dlg@40tude.net> Mime-Version: 1.0 X-Trace: individual.net fsmhITwOStd7XCg0BNW9mwyJgb8Z42KLovGLYz5cncp2i4PlpcZtE5tnKhED/N2d/x Cancel-Lock: sha1:H2Iw0OEFQND9yhxFM+dxo39EpD0= User-Agent: Microsoft-Entourage/12.33.0.120411 Thread-Topic: Press Release - Ada 2012 Language Standard Approved by ISO Thread-Index: Ac3d9etrIGIFtoplqEyiOTkW/Qa/fQ== Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: 2012-12-19T14:34:15+00:00 List-Id: On 19/12/2012 08:33, in article 7wrdmbre6jw9.qww9l0uzj6mg.dlg@40tude.net, "Dmitry A. Kazakov" wrote: > 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; Now that IS funnny! -- Bill Findlay with blueyonder.co.uk; use surname & forename;