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: 1108a1,b87849933931bc93 X-Google-Attributes: gid1108a1,public X-Google-Thread: fac41,b87849933931bc93 X-Google-Attributes: gidfac41,public X-Google-Thread: 114809,b87849933931bc93 X-Google-Attributes: gid114809,public X-Google-Thread: 103376,b87849933931bc93 X-Google-Attributes: gid103376,public From: jhd@herold.franken.de (Joachim Durchholz) Subject: Re: Static vs. Dynamic typing again (was Re: OO, C++, and something mu Date: 1997/02/08 Message-ID: <6QU$zv$k3RB@herold.franken.de>#1/1 X-Deja-AN: 217449871 distribution: world references: <32E764D0.23D9@calfp.com> newsgroups: comp.lang.eiffel,comp.lang.ada,comp.lang.smalltalk,comp.object Date: 1997-02-08T00:00:00+00:00 List-Id: Mark wrote: > This is my experience with C++ anyway. Please > comment if casting in Eiffel provides the same > opportunity for run-time errors. Casting in Eiffel is possible (via the assignment attempt - you assign, and if the run-time check doesn't work, the assigned-to variable will hold "void" as a value). There is no core dump or exception involved, except if you use the assigned-to variable afterwards without checking wether the assignment attempt worked. Anyway Eiffel exceptions are somewhat more disciplined than C++ exceptions (though they are quite different than "message not understood"). > The consequences of such runtime errors are > less severe in Smalltalk because it will not > core dump (mostly). Same holds for Eiffel programs :) Regards, -Joachim -- Joachim Durchholz, Hans-Herold-Str. 25, D-91074 Herzogenaurach, GERMANY