From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,8be18979db11f51c X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,fb631c9316319fef X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2001-03-01 10:14:03 PST Path: supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!netnews.com!feed2.onemain.com!feed1.onemain.com!cyclone2.usenetserver.com!news-out.usenetserver.com!sjc-peer.news.verio.net!news.verio.net!iad-read.news.verio.net.POSTED!kilgallen From: Kilgallen@eisner.decus.org.nospam (Larry Kilgallen) Newsgroups: comp.os.vms,comp.sys.dec Subject: Re: Drop C/C++ better sooner than later Message-ID: References: <87n1baae6s.fsf@prep.synonet.com> <97bm3a$7tv@gap.cco.caltech.edu> <3A99AED0.5DF07890@infopuls.com> <97cd06$hcn$1@pyrite.mv.net> <97egck$vc6$3@info.cs.uofs.edu> <3A9AEFCD.AFC8431@infopuls.com> <97etsu$j41$1@pyrite.mv.net> <3A9B023A.CBD414A5@infopuls.com> <97Organization: LJK Software Date: 1 Mar 2001 13:10:14 -0500 NNTP-Posting-Host: 216.44.122.34 X-Complaints-To: abuse@verio.net X-Trace: iad-read.news.verio.net 983470217 216.44.122.34 (Thu, 01 Mar 2001 18:10:17 GMT) NNTP-Posting-Date: Thu, 01 Mar 2001 18:10:17 GMT Organization: Verio Xref: supernews.google.com comp.os.vms:20737 comp.sys.dec:2980 In article , koehler@encompasserve.org (Bob Koehler) writes: > > The following simple little C program has a security hole a mile > wide in it. > > I know I could plug the hole. I also know a lot of C programmers who > can't see the hole and have no idea that it's there. > > I know I could massage this to get through a C++ compiler, so this > critisism also applies to C++. If you could massage this to get through a C++ compiler, then perhaps the only relevant criticism of C++ is that it allows a programmer to "drop into" ordinary C programming (or perhaps not, I don't know enough C to be a judge of that for your example). But certainly the ability to "drop into" ordinary C is a major complaint about C++ from the safe language advocates. Some Ada compilers have the ability to generate explicit assembler instructions, but it is such an odd looking piece of code, and so unportable, that it is less likely to be used.