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 23:00:52 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: vgodunko@vipmail.ru (Vadim Godunko) Newsgroups: comp.lang.ada Subject: Re: Ranges and discriminant constraints Date: 7 Jun 2003 23:00:51 -0700 Organization: http://groups.google.com/ Message-ID: <665e587a.0306072200.3d476477@posting.google.com> References: <665e587a.0306071258.1a8711cc@posting.google.com> NNTP-Posting-Host: 195.161.172.62 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1055052052 26297 127.0.0.1 (8 Jun 2003 06:00:52 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 8 Jun 2003 06:00:52 GMT Xref: archiver1.google.com comp.lang.ada:38820 Date: 2003-06-08T06:00:52+00:00 List-Id: "AG" wrote in message news:... > "Vadim Godunko" wrote in message > news:665e587a.0306071258.1a8711cc@posting.google.com... > > > Does anybody explain me why language allow constraint discriminant of > > discrete type to some value, but not allow constraint to range? > > If I understood you correctly you mean something like this: [?] > > type abc is (a, b, c); > type test(y: abc) is record > ... > z: test(a); -- Which compiles > vs > z: test(a..c); -- Which doesn't > Not exactly. I mean: type abc is (a, b, c); type r (k : abc) is record ... subtype rab is r (a .. b); procedure p (v : rab);