From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: * X-Spam-Status: No, score=1.5 required=3.0 tests=BAYES_50,FREEMAIL_FROM, FROM_STARTS_WITH_NUMS autolearn=no autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:a37:b4c5:: with SMTP id d188mr1834179qkf.441.1614248702922; Thu, 25 Feb 2021 02:25:02 -0800 (PST) X-Received: by 2002:a25:c943:: with SMTP id z64mr3145067ybf.73.1614248702732; Thu, 25 Feb 2021 02:25:02 -0800 (PST) Path: eternal-september.org!reader02.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!npeer.as286.net!npeer-ng0.as286.net!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!feeder1.cambriumusenet.nl!feed.tweak.nl!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 25 Feb 2021 02:25:02 -0800 (PST) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=82.154.188.98; posting-account=rhqvKAoAAABpikMmPHJSZh4400BboHwT NNTP-Posting-Host: 82.154.188.98 References: <4086f350-c56b-4eec-91d3-ef685230b011n@googlegroups.com> <67ea71d9-489a-4802-9cf0-d955f6ecce62n@googlegroups.com> <0e88c615-6a53-4392-b83d-581c59473c88n@googlegroups.com> <6716a4e5-02ac-4735-83c9-28bff3f8aae6n@googlegroups.com> <10e39f4a-9253-4faf-93af-b57ccad92526n@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <9fa7ba46-15c1-463d-9d62-b2fd392156dfn@googlegroups.com> Subject: Re: "unconstrained subtype in component declaration" vs "discriminant in constraint must appear alone" From: Mehdi Saada <00120260a@gmail.com> Injection-Date: Thu, 25 Feb 2021 10:25:02 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Bytes: 1967 Xref: reader02.eternal-september.org comp.lang.ada:61441 List-Id: Mystery resolved: I did show the type definition but the instanciation matters and had a constraint. Pack: CARDS_SETS(5); Making it unmutable. Once declared with an aggregate it's fine. ...Now I'll systematically show compilable exemples of both package and test programs. Thank you to put up with my idiocy.