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,334f9012742e58fc X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!news.belwue.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Mon, 05 Jul 2010 12:26:15 +0200 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.4) Gecko/20100608 Thunderbird/3.1 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Gnat GPL 2010 available soon (conditional expressions) References: <2010061621145016807-sjs@essexacuk> <0fa4c574-9539-492f-8514-d32c68beb22a@w31g2000yqb.googlegroups.com> <1frrgtpa5dycl$.12kl72iqsg3dx$.dlg@40tude.net> <4c270613$0$6974$9b4e6d93@newsspool4.arcor-online.net> <1wuwvzgwlwgli$.1birkinieia0d$.dlg@40tude.net> <1ur19ais2ejih.mjbgdsv9pr66.dlg@40tude.net> <4c275562$0$6987$9b4e6d93@newsspool4.arcor-online.net> <4c276114$0$2378$4d3efbfe@news.sover.net> <7ec98a71-edcb-4851-87fd-6702fb963829@q12g2000yqj.googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4c31b341$0$6763$9b4e6d93@newsspool3.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 05 Jul 2010 12:26:09 CEST NNTP-Posting-Host: d58cdcfb.newsspool3.arcor-online.net X-Trace: DXC=O?;@P]\DMcF=Q^Z^V3H4Fo<]lROoRA8kFJLh>_cHTX3jMlWoPW=DG]NO X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:12186 Date: 2010-07-05T12:26:09+02:00 List-Id: On 05.07.10 03:27, Phil Clayton wrote: > On Jun 30, 4:21 am, Britt Snodgrass wrote: > For formal verification tools, conditional expressions could be > useful. For example, there are two paths through > > if C then > Y := A; > else > Y := B; > end if; > > but only one path through > > Y := (if C then A else B); Any advantage over a function---which in SPARK case will be a pure function, IIRC? Y := Find_Y (Depends => C); > In my view, condition expressions are a step in the right direction... > but I'm the sort of person who wants to write an array aggregate like > > (for I in 1 .. 5 => (for J in 1 .. 7 => (if I = J then 1.0 else > 0.0))) What kind of name would you pick for the thing? Georg