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: a07f3367d7,5add429c86f59001 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!c19g2000yqc.googlegroups.com!not-for-mail From: Martin Newsgroups: comp.lang.ada Subject: Re: Ada vs Eiffel - Ada programmer approach Date: Thu, 4 Jun 2009 06:39:36 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <405b5054-4c8f-4e16-9ea8-503a9b9f976e@t21g2000yqi.googlegroups.com> <4A19765C.608@obry.net> <8105b65f-4de9-4653-b43a-d55ee33f072d@k2g2000yql.googlegroups.com> <88f38fe3-01ec-407f-b7b6-84a1d10de7f1@h11g2000yqb.googlegroups.com> NNTP-Posting-Host: 20.133.0.8 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1244122776 21747 127.0.0.1 (4 Jun 2009 13:39:36 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 4 Jun 2009 13:39:36 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: c19g2000yqc.googlegroups.com; posting-host=20.133.0.8; posting-account=g4n69woAAACHKbpceNrvOhHWViIbdQ9G User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.11) Gecko/2009051909 Firefox/3.0.11,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:6240 Date: 2009-06-04T06:39:36-07:00 List-Id: On Jun 4, 2:25=A0pm, Robert A Duff wrote: > Ludovic Brenta writes: > > I think my point was precisely that Ada assertions were different from > > Eiffel's. I like the fact that, in Ada, I can place assertions in the > > middle of a complex subprogram; this is not possible Eiffel, as you > > aptly described. > > It's possible in Eiffel -- Eiffel has a feature analogous to Ada's > pragma Assert. > > Newer versions of GNAT have pragmas Precondition and Postcondition. > We're thinking about adding pragma Invariant. > > The ARG is also thinking about adding pre/post/inv features to > the language. > > - Bob Please! :-) Cheers -- Martin