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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,98ea44ae4e872928 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-03-14 08:45:26 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!rwcrnsc51.ops.asp.att.net.POSTED!not-for-mail From: "Jeffrey Creem" Newsgroups: comp.lang.ada References: <3E7203B0.B5B7E076@alfred-hilscher.de> Subject: Re: SET in Ada? X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: NNTP-Posting-Host: 66.31.5.146 X-Complaints-To: abuse@attbi.com X-Trace: rwcrnsc51.ops.asp.att.net 1047660325 66.31.5.146 (Fri, 14 Mar 2003 16:45:25 GMT) NNTP-Posting-Date: Fri, 14 Mar 2003 16:45:25 GMT Organization: AT&T Broadband Date: Fri, 14 Mar 2003 16:45:25 GMT Xref: archiver1.google.com comp.lang.ada:35326 Date: 2003-03-14T16:45:25+00:00 List-Id: 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" 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" > ----------------------------------------------