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-Language: ENGLISH,ASCII X-Google-Thread: 103376,ab66185f2bca0483 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-15 06:34:51 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!tar-alcarin.cbb-automation.DE!not-for-mail From: Dmitry A. Kazakov Newsgroups: comp.lang.ada Subject: Re: Extension of non-limited type needs limited component Date: Fri, 15 Nov 2002 15:34:49 +0100 Message-ID: <8j0atu84ru6dhl1g0fnpnsji6ekqvbv5jg@4ax.com> References: NNTP-Posting-Host: tar-alcarin.cbb-automation.de (212.79.194.111) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: fu-berlin.de 1037370889 15390314 212.79.194.111 (16 [77047]) X-Newsreader: Forte Agent 1.8/32.548 Xref: archiver1.google.com comp.lang.ada:30940 Date: 2002-11-15T15:34:49+01:00 List-Id: On Fri, 15 Nov 2002 14:29:31 +0100, "Jean-Pierre Rosen" wrote: >"Dmitry A. Kazakov" a �crit dans le message >news: >> Both Ada and SmallTalk [AFAIK] do not crash when such thing happens. >> But this is not the problem. The problem is that though one could wish >> to detect all such and similar cases at compile time, one cannot. This >> does not mean that we should drop compile-time checks. [To put it >> clear, Ada is right, SmallTalk is wrong! (:-))] It only means that the >> argument, "this is not allowed, because it cannot be fully checked at >> compile time" is wrong. Alas, there are many damn useful things >> uncheckable at compile time. > >... with tagged types. > >The benefit, and drawback, of tagged types is that they allow dynamic >typing, therefore requiring (isn't it surprising) dynamic checking. More >flexibility, less security. If you want full compile-time checking, don't >use tagged types. You could also use a less restrictive "..., don't use class-wide objects with tags unknown at compile-time." >At least in Ada, you have a choice! Right. --- Regards, Dmitry Kazakov www.dmitry-kazakov.de