comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <rm.dash-bauhaus@futureapps.de>
Subject: When a conditional expression is static, where can it be used?
Date: Wed, 30 Jun 2010 12:39:07 +0200
Date: 2010-06-30T12:39:07+02:00	[thread overview]
Message-ID: <4c2b1ecb$0$7670$9b4e6d93@newsspool1.arcor-online.net> (raw)

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



             reply	other threads:[~2010-06-30 10:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-30 10:39 Georg Bauhaus [this message]
2010-06-30 11:25 ` When a conditional expression is static, where can it be used? Pascal Obry
2010-06-30 14:39 ` Adam Beneschan
2010-06-30 17:35   ` Dmitry A. Kazakov
2010-06-30 19:12     ` Adam Beneschan
2010-06-30 20:00       ` Dmitry A. Kazakov
2010-06-30 20:16         ` Adam Beneschan
2010-07-01 17:04       ` Pascal Obry
2010-06-30 20:05     ` Georg Bauhaus
2010-06-30 20:29       ` Adam Beneschan
2010-06-30 20:45       ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox