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,1cb75f0476fe2d1a X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!prodigy.net!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Half Constrained Array Types and Slices Date: 02 Mar 2006 16:01:37 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <1q3lxr5byac4f$.x8dnc8mjzyj2.dlg@40tude.net> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1141333297 14620 192.74.137.71 (2 Mar 2006 21:01:37 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Thu, 2 Mar 2006 21:01:37 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: g2news1.google.com comp.lang.ada:3246 Date: 2006-03-02T16:01:37-05:00 List-Id: "Jeffrey R. Carter" writes: > Dmitry A. Kazakov wrote: > > > subtype Half_Constrained (Length : Natural) is Unconstrained (1, Length); > > Again, you have a subtype with 1 discriminant of a type with 2. Are you > saying that should be legal? It is already legal for derived types: type U(Lo, Hi: Integer) is record A: String(Lo..Hi); end record; type Half(Hi: Integer) is new U(Lo => 1, Hi => Hi); Not quite the same thing as a subtype... - Bob