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,9f99a33281d5072c X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news4.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!fdn.fr!feeder.news.orange.fr!not-for-mail Date: Thu, 01 Jul 2010 19:04:47 +0200 From: Pascal Obry Organization: Home - http://www.obry.net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; fr-FR; rv:1.8.1.22) Gecko/20090605 Thunderbird/2.0.0.22 Mnenhy/0.7.5.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: When a conditional expression is static, where can it be used? References: <4c2b1ecb$0$7670$9b4e6d93@newsspool1.arcor-online.net> <555e3a37-c709-4b9b-995a-907da862d4b7@m40g2000prc.googlegroups.com> <12ok8wnj6k4sw$.ravumwbhfb1h$.dlg@40tude.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <4c2ccaa4$0$27573$ba4acef3@reader.news.orange.fr> NNTP-Posting-Date: 01 Jul 2010 19:04:36 CEST NNTP-Posting-Host: 82.124.77.194 X-Trace: 1278003876 reader.news.orange.fr 27573 82.124.77.194:4250 X-Complaints-To: abuse@orange.fr Xref: g2news1.google.com comp.lang.ada:12096 Date: 2010-07-01T19:04:36+02:00 List-Id: Le 30/06/2010 21:12, Adam Beneschan a �crit : > Ummm, not quite, because (1) Pascal didn't say anything about *why* he > thought it shouldn't compile (his entire statement was "This should > not compile I would say"), Because Sa is not covered by the alternatives. And if you ask me I find this quite a bad style. I hope GNAT will have some options to disallow if conditional expression in cases alternatives. This makes the code hard to read. Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://www.obry.net - http://v2p.fr.eu.org --| "The best way to travel is by means of imagination" --| --| gpg --keyserver keys.gnupg.net --recv-key F949BD3B