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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fac41,b87849933931bc93 X-Google-Attributes: gidfac41,public X-Google-Thread: 1108a1,b87849933931bc93 X-Google-Attributes: gid1108a1,public X-Google-Thread: 103376,b87849933931bc93 X-Google-Attributes: gid103376,public X-Google-Thread: 114809,b87849933931bc93 X-Google-Attributes: gid114809,public From: Mark Windholtz Subject: Re: Static vs. Dynamic typing again (was Re: OO, C++, and something much better!) Date: 1997/01/28 Message-ID: <32EE045D.E39@sdrc.com>#1/1 X-Deja-AN: 212740209 distribution: world references: <32DF458F.4D5C@concentric.net> <32DF94DC.6FF8@watson.ibm.com> <32DFD972.37E4@concentric.net> <32E4FC5B.242C@watson.ibm.com> <32E6862D.608B@parcplace.com> <32E764D0.23D9@calfp.com> <32E7A686.56D@parcplace.com> <32E7BD57.2558@calfp.com> to: Richie Bielak content-type: text/plain; charset=us-ascii organization: Structural Dynamics Research Corporation mime-version: 1.0 newsgroups: comp.lang.smalltalk,comp.lang.eiffel,comp.lang.ada,comp.object x-mailer: Mozilla 3.0 (X11; I; HP-UX A.09.07 9000/777) Date: 1997-01-28T00:00:00+00:00 List-Id: Richie Bielak wrote: > > but static typing _proves_ absence of certain kinds of errors. > > What also wanted to say in my previous post is that static typing > proves that there is no call in the program that will cause > the "message not understood" error. > Unless you CAST anywhere in your program. Then the static language version of "message not understood" is either an exception or a core dump. I would rather see a "message not understood" than a core dump or even an unhandled exception. In other words, static typing does not _prove_ that all objects understand all messages sent to them. Because casting is a way to defeat the compiler. This is my experience with C++ anyway. Please comment if casting in Eiffel provides the same opportunity for run-time errors. The consequences of such runtime errors are less severe in Smalltalk because it will not core dump (mostly). ~Mark ----------------------------------------- Cincinnati Smalltalk Users Group http://www.infinet.com/~mwind/st_users.htm ----------------------------------------- Mark.Windholtz@sdrc.com (513) 576-5626