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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c406e0c4a6eb74ed X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: ADA Popularity Discussion Request Date: Wed, 15 Sep 2004 12:05:26 +0200 Message-ID: References: <49dc98cf.0408110556.18ae7df@posting.google.com> <17sx057ro5jw5$.t2qlaeoxg611$.dlg@40tude.net> <1095082522.132276@master.nyc.kbcfp.com> <18ym85v67zof3$.7oqswzjfgswr.dlg@40tude.net> <1095090665.624419@master.nyc.kbcfp.com> <68zmgy3b894u.rs67cy6jjfiq$.dlg@40tude.net> <11tjdpsch74g0.158lc7jpe3vz5$.dlg@40tude.net> <41480a2e$1_1@baen1673807.greenlnk.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de WdyQgF+JDJUo7i7IcICEggZg+VcmfJl5UEO31i7KH8G13LNSU= User-Agent: 40tude_Dialog/2.0.12.1 Xref: g2news1.google.com comp.lang.ada:3752 Date: 2004-09-15T12:05:26+02:00 List-Id: On Wed, 15 Sep 2004 10:30:00 +0100, Martin Dowie wrote: > Dmitry A. Kazakov wrote: >> Positive is a subtype of Integer. Integer is a "subtype" of >> Universal_Integer. Conversion from the base to its subtype may raise >> Constraint_Error. Wide_Character and Character are related in exactly >> same manner as Integer and Positive. > > Why do you say that? Positive is defined in package "Standard" as a subtype. > Wide_Character and Character are defined in package "Standard" as difference > "type"-s. Yes, that is my point. It is illogical that they are declared as unrelated types. One should be a subtype of another. Semantically there is no difference. Clearly there is a huge technical difference, because Ada 83 requires same representations for S, T and T'Base. Once this limitation lifted it will be possible either to extend Character enumeration to Wide_Character, or to constrain Wide_Character to Character, keeping their T'Size different. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de