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,80bc3e0698be468f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!news.belwue.de!LF.net!news.enyo.de!not-for-mail From: Florian Weimer Newsgroups: comp.lang.ada Subject: Re: Type safety on wikipedia Date: Sun, 29 Jan 2006 22:48:36 +0100 Message-ID: <87vew2g0y3.fsf@mid.deneb.enyo.de> References: <1138260496.230283.147640@g43g2000cwa.googlegroups.com> <1138363035.664717.262330@g47g2000cwa.googlegroups.com> <17514424.vPDbTzKvie@linux1.krischik.com> <3yNinNxmEyJb@eisner.encompasserve.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: albireo.enyo.de 1138571316 12240 212.9.189.177 (29 Jan 2006 21:48:36 GMT) X-Complaints-To: Cancel-Lock: sha1:Zz9gCDYbD1hKBvVnVPzlL9a2Do4= Xref: g2news1.google.com comp.lang.ada:2703 Date: 2006-01-29T22:48:36+01:00 List-Id: * Larry Kilgallen: > I gather you are trying to say some people plan to have their programs > access via a null pointer and then handle an exception. That seems > incredibly sloppy. Sure, but it's still well-defined in terms of language semantics. The program does not "go wrong", as required by the rules for type safety. The null pointer example is actually a good one because it shows that even if a program is type safe, it is not necessarily correct. And Java with its null pointer exception problem shows that a language with a type system which is believed to be safe can result in practical problems which other, even unsafe type systems avoid (cf. C++ references).