comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey Creem" <jeff@thecreems.com>
Subject: Re: SET in Ada?
Date: Fri, 14 Mar 2003 16:45:25 GMT
Date: 2003-03-14T16:45:25+00:00	[thread overview]
Message-ID: <FGnca.95275$6b3.310536@rwcrnsc51.ops.asp.att.net> (raw)
In-Reply-To: 3E7203B0.B5B7E076@alfred-hilscher.de

If you need general purpse set operations then there are quite a few data
structure libraries out there you
can use.

if you are just trying to simulate the exact expression you wrote below then

case I is
  when 1 | 5 | 13 | 21 =>
    Do_The_Then_Stuff;
  when others =>
    Do_The_Else_Stuff;
end;

"Alfred" <SPAM@alfred-hilscher.de> wrote in message
news:3E7203B0.B5B7E076@alfred-hilscher.de...
> Hi I'm trying to convert some Modula code to Ada. There is a statement
> like this:
>
> IF i in {1,5,13,21}  THEN ...
>
> How could this be translated to Ada, because as far as I know, Ada has
> no similar "SET" handling.
>
> --
> ----------------------------------------------
> To send me email replace "SPAM" by "Jedermann"
> ----------------------------------------------





  reply	other threads:[~2003-03-14 16:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-14 16:30 SET in Ada? Alfred
2003-03-14 16:45 ` Jeffrey Creem [this message]
2003-03-14 17:23 ` Robert A Duff
2003-03-15  2:11 ` Jeffrey Carter
replies disabled

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