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 2002:a24:7445:: with SMTP id o66-v6mr912797itc.20.1539882231677; Thu, 18 Oct 2018 10:03:51 -0700 (PDT) X-Received: by 2002:a9d:3d06:: with SMTP id a6mr470690otc.0.1539882231561; Thu, 18 Oct 2018 10:03:51 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!feeder4.usenet.farm!feed.usenet.farm!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!z5-v6no26389ite.0!news-out.google.com!n199-v6ni43itn.0!nntp.google.com!z5-v6no26387ite.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 18 Oct 2018 10:03:51 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2003:c7:83d2:562e:9080:c00f:9918:9322; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf NNTP-Posting-Host: 2003:c7:83d2:562e:9080:c00f:9918:9322 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <7ab688d0-b6b8-459c-b5b7-39b6c35daad2@googlegroups.com> Subject: Re: A function that cannot be called? From: AdaMagica Injection-Date: Thu, 18 Oct 2018 17:03:51 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:54631 Date: 2018-10-18T10:03:51-07:00 List-Id: Am Donnerstag, 18. Oktober 2018 14:14:32 UTC+2 schrieb G.B.: > package What is > > type Void (<>) is private; > > function Impossible (X : T) return Void; > > private ... > end What; Of course this is possible. Declarations of objects of type Void must have an initial value, which can be provided via the "constructor" Impossible: X: Void := Impossible (T0); This works even if Void is made limited - then the return value is constructed in place. In effect, it's not clear what you're about.