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-Thread: 103376,e58bb9b46b60f0fb X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.germany.com!news.osn.de!diablo1-ffm.news.osn.de!news.tele.dk!news.tele.dk!small.news.tele.dk!newspeer1.se.telia.net!se.telia.net!masternews.telia.net.!newsb.telia.net.POSTED!not-for-mail From: =?ISO-8859-1?Q?Bj=F6rn_Persson?= User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: subtype of enumeration type References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: Date: Mon, 20 Mar 2006 20:29:22 GMT NNTP-Posting-Host: 83.250.106.90 X-Complaints-To: abuse@telia.com X-Trace: newsb.telia.net 1142886562 83.250.106.90 (Mon, 20 Mar 2006 21:29:22 CET) NNTP-Posting-Date: Mon, 20 Mar 2006 21:29:22 CET Organization: Telia Internet Xref: g2news1.google.com comp.lang.ada:3501 Date: 2006-03-20T20:29:22+00:00 List-Id: Maciej Sobczak wrote: > Consider this: > > type Day is (Mon, Tue, Wed, Thu, Fri, Sat, Sun); > > and the following standard example: > > subtype Weekday is Day range Mon .. Fri; > > Now imagine that in some country children don't have to go to school on > Wednesdays, they go there only Monday, Tuesday, Thursday and Friday. > > I want to say it in Ada. > > subtype Schoolday is Day ; I think the best you can do is: Is_Schoolday : constant array(Day) of Boolean := (True, True, False, True, True, False, False); -- Bj�rn Persson PGP key A88682FD omb jor ers @sv ge. r o.b n.p son eri nu