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,c9d5fc258548b22a X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!feeder.news.orange.fr!not-for-mail Message-ID: <4D4D6506.50909@obry.net> Date: Sat, 05 Feb 2011 15:56:06 +0100 From: Pascal Obry Organization: Home - http://www.obry.net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; fr-FR; rv:1.8.1.22) Gecko/20090605 Thunderbird/2.0.0.22 Mnenhy/0.7.5.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada To: Hyman Rosen Subject: Re: How do I write directly to a memory address? References: <67063a5b-f588-45ea-bf22-ca4ba0196ee6@l11g2000yqb.googlegroups.com> <31c357bd-c8dc-4583-a454-86d9c579e5f4@m13g2000yqb.googlegroups.com> <05a3673e-fb97-449c-94ed-1139eb085c32@x1g2000yqb.googlegroups.com> <4d4c232a$0$28967$882e7ee2@usenet-news.net> In-Reply-To: <4d4c232a$0$28967$882e7ee2@usenet-news.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit NNTP-Posting-Date: 05 Feb 2011 15:56:07 CET NNTP-Posting-Host: 82.124.203.119 X-Trace: 1296917767 reader.news.orange.fr 32437 82.124.203.119:15104 X-Complaints-To: abuse@orange.fr Xref: g2news1.google.com comp.lang.ada:16891 Date: 2011-02-05T15:56:07+01:00 List-Id: Hyman, > You make two errors here. The first is to assume without > any actual knowledge that it is possible for the argument > to be a null pointer; it is likely that the contract for > this procedure requires that it not be. I've read that a countless time. The problem is that it is not possible to enforce a contract in C. I've seen many bugs just for that. At some point a developer think about a contract and some time later this is just forgotten (even if clearly written in comment, who read comments!) and then a crash arise. Don't tell me you've never run into such situation. Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://www.obry.net - http://v2p.fr.eu.org --| "The best way to travel is by means of imagination" --| --| gpg --keyserver keys.gnupg.net --recv-key F949BD3B