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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!fx04.iad.POSTED!not-for-mail From: Shark8 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:30.0) Gecko/20100101 Thunderbird/30.0a1 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Functions vs constants References: <8xoyoz9pw6he$.djx7dfd6myjj.dlg@40tude.net> <1ov69six04hu4.s1g9xdvmngzy.dlg@40tude.net> In-Reply-To: <1ov69six04hu4.s1g9xdvmngzy.dlg@40tude.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: X-Complaints-To: abuse@teranews.com NNTP-Posting-Date: Sat, 26 Jul 2014 14:03:12 UTC Organization: TeraNews.com Date: Sat, 26 Jul 2014 08:03:12 -0600 X-Received-Bytes: 1917 X-Received-Body-CRC: 1071140628 Xref: news.eternal-september.org comp.lang.ada:21242 Date: 2014-07-26T08:03:12-06:00 List-Id: On 26-Jul-14 02:02, Dmitry A. Kazakov wrote: > The mess is to think one could design types as hierarchies. Ridiculous; it's obvious that some types really do belong in a hierarchy. (Granted, not the *same* hierarchy with "one root to rule them all, and in the darkness bind them".) -- e.g. there really should be a common ["generic"] root, an "abstract type" if you will, for strings which conceptually are "instantiated" with the different versions of Character (ie [[Wide_]Wide_]Character) but present to the programmer a single, unified interface. The same can be said of float- and fixed-point numbers, and possibly integers with a root "universal_numeric". (The way we use "untyped constants" [named numbers] indicates that exact assumed interface.)