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:aed:3964:: with SMTP id l91mr20354237qte.32.1614003627942; Mon, 22 Feb 2021 06:20:27 -0800 (PST) X-Received: by 2002:a25:240f:: with SMTP id k15mr8761776ybk.363.1614003627655; Mon, 22 Feb 2021 06:20:27 -0800 (PST) Path: eternal-september.org!reader02.eternal-september.org!news.dns-netz.com!news.freedyn.net!newsreader4.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 22 Feb 2021 06:20:27 -0800 (PST) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=89.26.241.134; posting-account=rhqvKAoAAABpikMmPHJSZh4400BboHwT NNTP-Posting-Host: 89.26.241.134 References: <4086f350-c56b-4eec-91d3-ef685230b011n@googlegroups.com> <67ea71d9-489a-4802-9cf0-d955f6ecce62n@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <0e88c615-6a53-4392-b83d-581c59473c88n@googlegroups.com> Subject: Re: "unconstrained subtype in component declaration" vs "discriminant in constraint must appear alone" From: Mehdi Saada <00120260a@gmail.com> Injection-Date: Mon, 22 Feb 2021 14:20:27 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Bytes: 1866 Xref: reader02.eternal-september.org comp.lang.ada:61412 List-Id: So typical, you ask for a technical issue, they respond "your strategy is bad" X-D The exo says explicitely "do not use the magic number 52"... whatever ;-) "If it were allowed to be used in expressions, either each result would need a storage place of its own or a reevaluation at every use of the object." I understand the point. But does / will it change with the Static aspect on functions, ensuring it would not have to re-evaluated at each call ? I just intend to initialize the value once and done. It is a default value, not a dynamic predicate.