comp.lang.ada
 help / color / mirror / Atom feed
From: "Vadim Godunko" <vgodunko@vipmail.ru>
Subject: Re: Case statement and Integers.
Date: Mon, 22 Apr 2002 12:41:20 +0400
Date: 2002-04-22T12:41:20+04:00	[thread overview]
Message-ID: <mailman.1019465466.24117.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: 5ee5b646.0204211905.16ee3dcb@posting.google.com

Sorry, this is my mistake. The correct expamle:

case Numbers (J) is
   when Numbers_Array_Element_Type'First .. Pivot - 1 =>
      ...
   when Pivot + 1 .. Numbers_Array_Element_Type'Last =>
      ...
   when others =>
      null;
end case;

and, Pivot must be constant.

----- Original Message -----
From: "Robert Dewar" <dewar@gnat.com>
Newsgroups: comp.lang.ada
Sent: Monday, April 22, 2002 7:05 AM
Subject: Re: Case statement and Integers.


> "Vadim Godunko" <vgodunko@vipmail.ru> wrote in message
news:<mailman.1019330222.4196.comp.lang.ada@ada.eu.org>...
>
> > case Numbers(J) is
> >    when Numbers (J) in Numbers_Array_Element_Type'First .. Pivot - 1 =>
> >       swap ...
> >    when Numbers (J) in Pivot + 1 .. Numbers_Array_Element_Type'Last =>
> >       swap ...
> >    when others =>
> >       null;
> > end case;
>
> Please don't post junk code. If you are trying to be deliberately
unhelpful,
> do it by email. If you really think that the above is correct, you are as
> seriously confused as the questioner :-)
>
> As always, I suggest that people actually compile any sample code they
> think of suggesting on CLA.




  reply	other threads:[~2002-04-22  8:41 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-20 16:42 Case statement and Integers Wannabe h4x0r
2002-04-20 17:04 ` Rhoady
2002-04-20 17:11 ` Alan Reynolds
2002-04-20 17:32   ` Wannabe h4x0r
2002-04-20 18:31     ` tmoran
2002-04-21  3:59       ` Wannabe h4x0r
2002-04-22  3:01       ` Robert Dewar
2002-04-22  5:14       ` Anders Wirzenius
2002-04-20 21:26     ` Ted Dennison
2002-04-20 19:14 ` Vadim Godunko
2002-04-22  3:05   ` Robert Dewar
2002-04-22  8:41     ` Vadim Godunko [this message]
2002-04-22 13:16       ` Robert Dewar
2002-04-23  6:38     ` Wannabe h4x0r
2002-04-22 16:58 ` Anatoly Chernyshev
2002-04-22 17:55   ` tmoran
2002-04-22 19:51     ` Anatoly Chernyshev
2002-04-24 11:41   ` Robert Dewar
  -- strict thread matches above, loose matches on Subject: below --
2002-04-22  9:11 Grein, Christoph
replies disabled

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