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:e57:: with SMTP id 84-v6mr8897272ite.4.1540121436239; Sun, 21 Oct 2018 04:30:36 -0700 (PDT) X-Received: by 2002:a9d:528e:: with SMTP id f14mr738726oth.4.1540121435799; Sun, 21 Oct 2018 04:30:35 -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.216.MISMATCH!x98-v6no292896ita.0!news-out.google.com!l70-v6ni394itb.0!nntp.google.com!x98-v6no292892ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 21 Oct 2018 04:30:35 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=81.167.3.186; posting-account=uulyKwoAAAA86DO0ODu--rZtbje8Sytn NNTP-Posting-Host: 81.167.3.186 References: <99f41210-6fe2-4b4d-90ad-21a0ab108f53@googlegroups.com> <39dec2d6-7da5-4421-bb50-e4effd5a1439@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <104caa52-8e0b-4699-996e-74f382c31ba7@googlegroups.com> Subject: Re: A function that cannot be called? From: Egil H H Injection-Date: Sun, 21 Oct 2018 11:30:36 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:54681 Date: 2018-10-21T04:30:35-07:00 List-Id: On Sunday, October 21, 2018 at 12:14:05 PM UTC+2, G.B. wrote: > On 20.10.18 00:06, Jere wrote: > > > Are you ok with runtime checks? If that's the case, you can abuse contracts: package What is pragma Assertion_Policy(Check); type Void is private with Type_Invariant => False; function Impossible return Void with Pre => False; private type Void is null record; end What; -- ~egilhh