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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.szaf.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: A function that cannot be called? Date: Thu, 18 Oct 2018 23:57:42 +0300 Organization: Tidorum Ltd Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net Vuf4ubgH38dEwgub/KFzLgXYm/U5SKAM/xv7VhsNeDoQ6fWl6W Cancel-Lock: sha1:k5+2/z9PWSSX2NvuV8I2sdKJcu4= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 In-Reply-To: Xref: reader02.eternal-september.org comp.lang.ada:54638 Date: 2018-10-18T23:57:42+03:00 List-Id: On 18-10-18 23:21 , G.B. wrote: > On 18.10.18 17:33, Stefan.Lucks@uni-weimar.de wrote: >> On Thu, 18 Oct 2018, G.B. wrote: >> >>> There is a type declaration, I rememberd, in Ada, that >>> does not allow any object of the type to be declared. >> >> What, exactly, is the point of your question? > > Philip Wadler asked, on occasion[*], whether there was any programming > language other than Haskell that had a (concrete, usable in the normal > way I guess) type like ("unihabited") Void in Data.Void. (The point is > getting my feet wet at the shores of correspondences of logic, typed > lambdas, > and categories with resp. programming languages' features.) I'm not sure that I understand what you want, but here is a type for which no valid and initialized object can exist: type Zilch is range 1 .. 0; -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .