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!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: A function that cannot be called? Date: Fri, 19 Oct 2018 09:15:37 +0200 Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: MyFhHs417jM9AgzRpXn7yg.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 X-Notice: Filtered by postfilter v. 0.8.3 Content-Language: en-US Xref: reader02.eternal-september.org comp.lang.ada:54644 Date: 2018-10-19T09:15:37+02:00 List-Id: On 2018-10-18 22: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, You should probably start expressing what you want using clearer terms. A type has a set of values and a set of operations. A type can be a member of several classes of types. 1. What values the type in question must have? 2. What operations it must have? 3. Of which classes it must be a member? E.g. the type proposed by Niklas: type Zilch is range 1 .. 0; has an empty set of values, non empty set of operations. It is a member of the non-tagged classes Zilch'Base, universal integer etc. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de