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,4b06f8f15f01a568 X-Google-Attributes: gid103376,public From: Mark A Biggar Subject: Re: Software landmines (was: Why C++ is successful) Date: 1998/08/24 Message-ID: <35E1E74D.AF98CE26@lmco.com>#1/1 X-Deja-AN: 384347539 Content-Transfer-Encoding: 7bit References: <6rnh8p$dno$1@nnrp1.dejanews.com> <$3XHNBAxSZ41Ew4G@dowie-cs.demon.co.uk> Content-Type: text/plain; charset=us-ascii Organization: Lockheed Martin Western Development Labs Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1998-08-24T00:00:00+00:00 List-Id: Martin Dowie wrote: > In article <$3XHNBAxSZ41Ew4G@dowie-cs.demon.co.uk>, Martin Dowie > writes > >In article <6rnh8p$dno$1@nnrp1.dejanews.com>, dewar@gnat.com writes > >>This is typical of the kind of obfuscation that I find odd when it is used > >>in a desparate attempt to avoid a goto spelled G-O-T-O. > >>A return *is* a goto statement, so is an exit statement. They are both > >>reasonably well disciplined goto statements, so this means they are neither > >>better nor worse than corresponding disciplined use of goto. > and all the "Jackson" fans will want to point out that there > is no such thing as a 'goto' of data structures, but there > are sequences, selections and iterations. Yes, there is, Pointers are the data structure equivelant of the goto statement. Multiple aliases can get you into worse trouble then goto's any day. At least a goto has an explisitly labeled target, while in most languages a variable with multiple aliaes has no marking what-so-ever. Note, that Ada is one of the few languages that requires such marking with the "aliased" keyword. -- Mark Biggar mark.a.biggar@lmco.com