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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,703c4f68db81387d X-Google-Thread: 109fba,703c4f68db81387d X-Google-Attributes: gid103376,gid109fba,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!newsfeed.kamp.net!newsfeed.freenet.de!151.189.20.20.MISMATCH!newsfeed.arcor.de!news.arcor.de!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Teaching new tricks to an old dog (C++ -->Ada) Newsgroups: comp.lang.ada,comp.lang.c++ User-Agent: 40tude_Dialog/2.0.14.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <4229bad9$0$1019$afc38c87@news.optusnet.com.au> <1110032222.447846.167060@g14g2000cwa.googlegroups.com> <871xau9nlh.fsf@insalien.org> <3SjWd.103128$Vf.3969241@news000.worldonline.dk> <87r7iu85lf.fsf@insalien.org> <1110052142.832650@athnrd02> <1110284070.410136.205090@o13g2000cwo.googlegroups.com> <395uqaF5rhu2mU1@individual.net> <112rs0bdr2aftdf@corp.supernews.com> Date: Wed, 9 Mar 2005 10:14:45 +0100 Message-ID: <186vwd928zu6u$.t6bzycmtv5on$.dlg@40tude.net> NNTP-Posting-Date: 09 Mar 2005 10:11:31 MET NNTP-Posting-Host: 04cb4820.newsread2.arcor-online.net X-Trace: DXC=HZPkJE?10N`hlIa[YhA;>cQ5U85hF6f;djW\KbG]kaMh]kI_X=5Keaf@WLLO>ILfToWRXZ37ga[7jn919Q4_`VjiB8=X\UUgbkd X-Complaints-To: abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:8915 comp.lang.c++:44723 Date: 2005-03-09T10:11:31+01:00 List-Id: On Wed, 09 Mar 2005 01:18:03 GMT, Jim Rogers wrote: > This is one of the unsafe idioms in C. > The fact that you can declare a formal parameter as a pointer and then > use that parameter as an array is unsafe. It is also unusable with small and packed data types in which case the array elements may have no valid machine addresses. The bottom line: array is an interface. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de