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 X-Google-Thread: 103376,640b65cbfbab7216 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!k1g2000prb.googlegroups.com!not-for-mail From: Eric Hughes Newsgroups: comp.lang.ada Subject: Re: Ada.Strings.Bounded Date: Mon, 14 Apr 2008 08:25:41 -0700 (PDT) Organization: http://groups.google.com Message-ID: <927bd9bc-1de1-44ae-ae20-35c1cc599d17@k1g2000prb.googlegroups.com> References: <47F26C46.3010607@obry.net> <44d88b93-6a90-4c18-8785-2164934ba700@a9g2000prl.googlegroups.com> <47F652F7.9050502@obry.net> <47f7028d$1_6@news.bluewin.ch> <47F749CB.30806@obry.net> <480111a5$0$23695$9b4e6d93@newsspool2.arcor-online.net> <5d94b37c-20cd-46cf-b4c9-94bd2047c438@b5g2000pri.googlegroups.com> <0a2bbbb1-19d8-41d3-84a0-321cd045a48b@1g2000prf.googlegroups.com> <1oezq4ijzah23.18y7fwriuqe6s.dlg@40tude.net> NNTP-Posting-Host: 166.70.57.218 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1208186741 18226 127.0.0.1 (14 Apr 2008 15:25:41 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 14 Apr 2008 15:25:41 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k1g2000prb.googlegroups.com; posting-host=166.70.57.218; posting-account=5RIiTwoAAACt_Eu87gmPAJMoMTeMz-rn User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:20937 Date: 2008-04-14T08:25:41-07:00 List-Id: On Apr 14, 2:00 am, "Dmitry A. Kazakov" wrote: > If we had universal_string, it would have no assignment anyway, because all > universal objects are immutable. Sure, because you can't declare a variable of a universal type. But this critique misses the point, which is about the relationship of types that partially implement a universal type. > There is a difference between types and their constrained subtypes in terms > of substitutability. That's why the language has Constraint_Error defined. > The contracts extended by Constraint_Error aren't violated and everything > is fine. Sure, but again not the point. The relationship between a universal type and an implemented type is NOT the same as that between two implemented types. Eric