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:a02:8981:: with SMTP id p1-v6mr29377671jaj.7.1539968815308; Fri, 19 Oct 2018 10:06:55 -0700 (PDT) X-Received: by 2002:a9d:24e8:: with SMTP id z95mr650592ota.1.1539968815199; Fri, 19 Oct 2018 10:06:55 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.166.215.MISMATCH!z5-v6no80144ite.0!news-out.google.com!l70-v6ni106itb.0!nntp.google.com!z5-v6no80137ite.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 19 Oct 2018 10:06:54 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2003:c7:83d2:566f:208c:fba:4080:345a; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf NNTP-Posting-Host: 2003:c7:83d2:566f:208c:fba:4080:345a References: <99f41210-6fe2-4b4d-90ad-21a0ab108f53@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <39dec2d6-7da5-4421-bb50-e4effd5a1439@googlegroups.com> Subject: Re: A function that cannot be called? From: AdaMagica Injection-Date: Fri, 19 Oct 2018 17:06:55 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:54657 Date: 2018-10-19T10:06:54-07:00 List-Id: I do not really understand what all this is about, but: package What is type Void (<>) is private; function Create (Params: Some_Type) return Void is abstract; private type Void is null record; -- no values end What; Void has no values (hm, a null record is a value, but it's irrelevant, sinc= e no objects exist (there is none in the private part; a body is illegal); = no objects can be created because Create is abstract, so in effect Create d= oes not exist - so it cannot be called. With caveat - I didn't try to compile this.