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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.99.65.199 with SMTP id o190mr12692294pga.123.1503301015109; Mon, 21 Aug 2017 00:36:55 -0700 (PDT) X-Received: by 10.36.110.20 with SMTP id w20mr32716itc.7.1503301015025; Mon, 21 Aug 2017 00:36:55 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.unit0.net!peer03.am4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!m81no1088301itb.0!news-out.google.com!c139ni951itb.0!nntp.google.com!m81no2447126itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 21 Aug 2017 00:36:54 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=79.41.228.103; posting-account=9fwclgkAAAD6oQ5usUYhee1l39geVY99 NNTP-Posting-Host: 79.41.228.103 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <802302b1-afef-42d0-97a3-00287e0073ab@googlegroups.com> Subject: Re: Primitive subprogram for a subtype? From: mockturtle Injection-Date: Mon, 21 Aug 2017 07:36:55 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 1612 X-Received-Body-CRC: 3960090128 Xref: news.eternal-september.org comp.lang.ada:47761 Date: 2017-08-21T00:36:54-07:00 List-Id: On Monday, August 21, 2017 at 12:45:44 AM UTC+2, Victor Porton wrote: > Is it possible to define a primitive subprogram for a subtype rather than= =20 > the base type? >=20 > --=20 > Victor Porton - http://portonvictor.org As I understand (but I am no language lawyer) a subtype is actually the bas= e type, but just with a restriction on the set of possible values. Therefo= re, it seems to me that it does not make sense to have type and subtype wit= h different primitive subprograms.