comp.lang.ada
 help / color / mirror / Atom feed
* When a conditional expression is static, where can it be used?
@ 2010-06-30 10:39 Georg Bauhaus
  2010-06-30 11:25 ` Pascal Obry
  2010-06-30 14:39 ` Adam Beneschan
  0 siblings, 2 replies; 11+ messages in thread
From: Georg Bauhaus @ 2010-06-30 10:39 UTC (permalink / 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



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2010-07-01 17:04 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-30 10:39 When a conditional expression is static, where can it be used? Georg Bauhaus
2010-06-30 11:25 ` 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

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