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=0.8 required=3.0 tests=BAYES_50,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:a0c:e84c:: with SMTP id l12mr27069670qvo.0.1607936481663; Mon, 14 Dec 2020 01:01:21 -0800 (PST) X-Received: by 2002:ac8:7501:: with SMTP id u1mr29705401qtq.346.1607936481536; Mon, 14 Dec 2020 01:01:21 -0800 (PST) Path: eternal-september.org!reader02.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!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: Mon, 14 Dec 2020 01:01:21 -0800 (PST) In-Reply-To: <0ded905f-94ac-4470-936c-7f1cb19ac798n@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=94.31.100.133; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf NNTP-Posting-Host: 94.31.100.133 References: <0c0ddb8e-6a82-473d-8143-f4076242f520n@googlegroups.com> <86r1ntntb3.fsf@stephe-leake.org> <0ded905f-94ac-4470-936c-7f1cb19ac798n@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <82e629ea-bd59-417a-9185-dd6094e396c1n@googlegroups.com> Subject: Re: Possible to recover default value of scalar type? From: AdaMagica Injection-Date: Mon, 14 Dec 2020 09:01:21 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:60833 List-Id: I do not really understand the problem. It seems you want to be able to access the default value like so: N: Natural := Natural(A_Type'Default_Value); This is not possible. Thre is no corresponding attribute 'Default_Value. If this presents a real problem, submit it to Ada comment stating why this is important.