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-7-bit Path: g2news2.google.com!news1.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Ada vs Eiffel - Ada programmer approach Date: Thu, 04 Jun 2009 09:25:59 -0400 Organization: The World Public Access UNIX, Brookline, MA 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: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1244121959 20080 192.74.137.71 (4 Jun 2009 13:25:59 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Thu, 4 Jun 2009 13:25:59 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:nk5OUyrp8MUtIrUV8Bo9qmZAEeg= Xref: g2news2.google.com comp.lang.ada:6239 Date: 2009-06-04T09:25:59-04:00 List-Id: 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