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,54c513170bafd693 X-Google-Attributes: gid103376,public From: Ole-Hjalmar Kristensen Subject: Re: Desirability of C++ Date: 2000/05/04 Message-ID: #1/1 X-Deja-AN: 619115328 Sender: ohk@gong2.clustra.com References: <390DEC7F.9429C82C@online.no><390E2A20.B647D0D6@maths.unine.ch> <8em8mb$evd$1@wanadoo.fr><390EEF24.BD36AA24@maths.unine.ch> <8eonat$sqj3@ftp.kvaerner.com> <8eoo6v$ers$1@wanadoo.fr> <391060A6.7ABCDCFE@cadence.com> <8eptms$7vq$1@wanadoo.fr> X-Complaints-To: abuse@telia.no X-Trace: news.telia.no 957442993 195.204.160.194 (Thu, 04 May 2000 14:23:13 CEST) Organization: Telia Internet Public Access NNTP-Posting-Date: Thu, 04 May 2000 14:23:13 CEST Newsgroups: comp.lang.ada Date: 2000-05-04T00:00:00+00:00 List-Id: randhol+nospam@pvv.org (Preben Randhol) writes: > On Thu, 04 May 2000 11:42:34 GMT, Ole-Hjalmar Kristensen wrote: > >This seems incredibly narrow-minded. Why is the notation so important > >to you if the same functionality is available? > > The biggest problem is buffer overflow. That is as I know the most > common security hole in Unix software. > > -- > Preben Randhol -- [randhol@pvv.org] -- > "Det eneste trygge stedet i verden er inne i en fortelling." > -- Athol Fugard Yes, that's a problem. It is also a problem with C arrays in general. But it has nothing to do with notation, or whether C has a string type or not, but with bounds checking. C: You shoot yourself in the foot. C++: You accidently create a dozen instances of yourself and shoot them all in the foot. Providing emergency medical care is impossible since you can't tell which are bitwise copies and which are just pointing at others and saying, "that's me, over there." Ada: After correctly packaging your foot, you attempt to concurrently load the gun, pull the trigger, scream and shoot yourself in the foot. When you try, however, you discover that your foot is of the wrong type. -- E pluribus Unix