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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,32cfbb718858528b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-10 14:38:50 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!uunet!sea.uu.net!ash.uu.net!world!news From: Robert A Duff Subject: Re: Commercial C To Ada 95 compiler Sender: news@world.std.com (Mr Usenet Himself) Message-ID: Date: Mon, 10 Jun 2002 21:37:44 GMT References: <3D002D11.CC706952@adaworks.com> <4519e058.0206071148.9b87acf@posting.google.com> <3D0116F3.7254E263@despammed.com> <3D018106.6080004@worldnet.att.net> <3D04F442.741C386C@despammed.com> <3D05132C.3B45562F@despammed.com> NNTP-Posting-Host: shell01.theworld.com Organization: The World Public Access UNIX, Brookline, MA X-Newsreader: Gnus v5.7/Emacs 20.7 Xref: archiver1.google.com comp.lang.ada:25701 Date: 2002-06-10T21:37:44+00:00 List-Id: Wes Groleau writes: > > It seems to me making the implicit conversions into expliccit conversions > > would be "unhiding" them. Some standard comment text to indicate an > > unreviewed conversion could be inserted in the output source. > > What I'm saying is that in C, implicit conversions > are three kinds: > > 1. Intentional documented implementation decisions > 2. Intentional undocumented implementation decisions > 3. Careless mistakes, whether harmful or not. Right, and surely the vast majority are not of kind 3... > An automatic translator cannot tell the difference. > Usually, neither can a human translator. Making > all of them explicit conversions hides the bugs > unless you comment them as you say. > > Not making any explicit will show all the bugs, > but it forces you to identify and fix all the > ones that are not bugs before you can compile. ...which is most of them. - Bob