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,29d8139471e3f53e X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!s19g2000vbr.googlegroups.com!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Preventing type extensions Date: Fri, 24 Sep 2010 08:09:04 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <87iq2bfenl.fsf@mid.deneb.enyo.de> <8f6cceFrv2U1@mid.individual.net> <135a7dc9-3943-45e4-884b-3cc6bce3db0a@q18g2000vbm.googlegroups.com> <81799aab-a2e8-4390-8f42-abceaa5fc032@m1g2000vbh.googlegroups.com> <5c0d7798-ba09-4bd0-a28f-f1b028cce927@y3g2000vbm.googlegroups.com> <87r5gl8tky.fsf@ludovic-brenta.org> <4C9B858C.9050208@obry.net> <877hic8asm.fsf@ludovic-brenta.org> <7f718cec-a2c5-42de-932d-4998b84df29e@q9g2000vbd.googlegroups.com> NNTP-Posting-Host: 153.98.68.197 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1285340944 26120 127.0.0.1 (24 Sep 2010 15:09:04 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 24 Sep 2010 15:09:04 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s19g2000vbr.googlegroups.com; posting-host=153.98.68.197; posting-account=pcLQNgkAAAD9TrXkhkIgiY6-MDtJjIlC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6 (.NET CLR 3.5.30729),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:14236 Date: 2010-09-24T08:09:04-07:00 List-Id: Simon Wright wrote on comp.lang.ada: > Ludovic Brenta writes: >> I believe that, if Smalltalk had class-wide types, it would be able to >> prevent "the yo-yo problem" just like Ada does. > > Not sure that the designers of Smalltalk would have described this as a > 'problem'! No, only users of the language called it that. Also, this "problem" became prevalent only in the field, with deep inheritance hierarchies and large systems, after the language was designed. Objective-C, Java and, apparently, Object Pascal replicated this same "problem". In these languages, you have no choice but to redispatch every time. -- Ludovic Brenta.