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,9f99a33281d5072c,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!193.201.147.78.MISMATCH!feeder.news-service.com!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!news.weisnix.org!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Wed, 30 Jun 2010 12:39:07 +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: When a conditional expression is static, where can it be used? Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4c2b1ecb$0$7670$9b4e6d93@newsspool1.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 30 Jun 2010 12:39:07 CEST NNTP-Posting-Host: 818fc8eb.newsspool1.arcor-online.net X-Trace: DXC=icHjCTHe8ZeOKO]LCQ@0g`ic==]BZ:afn4Fo<]lROoRa<`=YMgDjhgbB_QmXYGIhNhnc\616M64>jLh>_cHTX3jm2VG9E4:h\Fk X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:12034 Date: 2010-06-30T12:39:07+02:00 List-Id: A totally meaningless example just to illustrate the question: What is it that a compiler must report for the case statement below, if anything? procedure CE is type DOW is (Mo, Tu, We, Th, Fr, Sa, So); procedure P is begin null; end P; D: constant DOW := We; begin case D is when Mo | We | Fr => P; when (if D = We or D = Fr then So else Sa) => P; when Tu | Th => P; end case; end CE; Georg