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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,36208f5925ed5269 X-Google-Attributes: gid103376,public From: rlove@antispam.neosoft.com (Robert B. Love ) Subject: Re: non-consecutive ranges Date: 1999/05/01 Message-ID: <7gfe9f$lu7$1@uuneo.neosoft.com>#1/1 X-Deja-AN: 472937716 Content-Transfer-Encoding: 7bit References: <7gct90$7hr$1@nnrp1.dejanews.com> Content-Type: text/plain; charset=us-ascii Organization: NeoSoft, Inc. Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-05-01T00:00:00+00:00 List-Id: In <7gct90$7hr$1@nnrp1.dejanews.com> vlight@my-dejanews.com wrote: > > > is there a way to define a variable to have a non-consecutive range? for > instance, let's say i wanted to define variable X with a range from 2 to 1024 > and 4096 to 8192. > > X : Integer range (1 .. 1024) and (4096 .. 8192); > > or something similar to this declaration. in addition to define > non-consecutive ranges, could i define a range of odd numbers? even numbers? Didn't Modula-2 have a "Set" datatype that could have non-consecutive ranges? Anybody have a good generic set implementation? -- ---------------------------------------------------------------- Bob Love MIME & NeXT Mail OK rlove@neosoft.com ----------------------------------------------------------------