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: 103376,aef01dc1d0a3a8bd X-Google-Attributes: gid103376,public From: Hyman Rosen Subject: Re: Dummy Date: 2000/02/03 Message-ID: #1/1 X-Deja-AN: 581110026 Sender: hymie@calumny.jyacc.com References: <387b154a.3533365@newsread.albacom.net> <3898C380.BC01EC03@earthlink.net> <38999F78.C17BAA7D@maths.unine.ch> X-Complaints-To: abuse@panix.com X-Trace: news.panix.com 949590770 23309 209.49.126.226 (3 Feb 2000 15:12:50 GMT) Organization: PANIX Public Access Internet and UNIX, NYC NNTP-Posting-Date: 3 Feb 2000 15:12:50 GMT Newsgroups: comp.lang.ada Date: 2000-02-03T15:12:50+00:00 List-Id: Gautier writes: > > Java casts are always perfectly safe. Casts between object types are > > akin to C++'s dynamic_cast, in that they are type-checked at runtime > ^^^^^^^^^^^^^^^^^^^^^^^ > Cultural questions: isn't it a redhibitory source of slowndowns ?! Is there > a mean to make such type checking at compile time in Java ?... What's "redhibitory"? Anyway, the compiler can elide a runtime check if it can prove that the cast would always succeed.