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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7b65fc33a05f24b6 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe03.iad.POSTED!4a71828c!not-for-mail From: Hyman Rosen User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: A curiosity... References: <0f009ce8-0f50-4b85-9368-0d0c68f42da1@w34g2000yqm.googlegroups.com> <396044ea-4c37-4923-b989-eb4af2202bd3@o2g2000yqd.googlegroups.com> <87r64naw36.fsf@willow.rfc1149.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Message-ID: X-Complaints-To: abuse@WWWSpace.NET NNTP-Posting-Date: Fri, 05 Dec 2008 15:15:35 UTC Date: Fri, 05 Dec 2008 10:15:35 -0500 Xref: g2news1.google.com comp.lang.ada:2892 Date: 2008-12-05T10:15:35-05:00 List-Id: Martin Krischik wrote: > The real problem is that most C programmers don't know that. The semantics of conversion between pointer and integer are defined by the implementation. There's no law that says that C programs must be written to be portable. It's acceptable to use implementation-specific behavior and knowledge of the architecture if that's what you want, especially when the architectures that are different enough to matter are as rare as hen's teeth. No argument, though, that C and C++ ate unsafe by default.