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,ec1a210f9e3b089e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-07 19:22:18 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!c03.atl99!news.webusenet.com!pc01.webusenet.com!fe03.atl2.webusenet.com.POSTED!not-for-mail From: "David C. Hoos" Newsgroups: comp.lang.ada References: <665e587a.0306071258.1a8711cc@posting.google.com> Subject: Re: Ranges and discriminant constraints MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: X-Complaints-To: abuse@usenetserver.com X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly. NNTP-Posting-Date: Sat, 07 Jun 2003 22:12:31 EDT Date: Sat, 7 Jun 2003 21:22:11 -0500 Xref: archiver1.google.com comp.lang.ada:38799 Date: 2003-06-07T21:22:11-05:00 List-Id: "Vadim Godunko" wrote in message news:665e587a.0306071258.1a8711cc@posting.google.com... > Hello, > > Does anybody explain me why language allow constraint discriminant of > discrete type to some value, but not allow constraint to range? To constrain a discrete type to a more narrow range, you use a subrtype -- e.g.: type my_enum is (a, b, c, d, e); subtype my_constrained_enum is my_enum range b .. d; > > Thanks, > Vadim Godunko > _______________________________________________ > comp.lang.ada mailing list > comp.lang.ada@ada.eu.org > http://ada.eu.org/mailman/listinfo/comp.lang.ada > >